I tried to use the feature: Disable Help on Specific Pages. I want to disable help on my home page, which is a page with the URL of "home." I inserted the following into the page: http://mysite.org/admin/contexthelp/url/mappings:

home
/home
http://mysite.org/home
http://mysite.org

but the help button still appears on the home page.

What is the syntax needed to disable help on a page?

Comments

tallsimon’s picture

have you tried ?

darren.ferguson’s picture

Contexthelp always users the underlying and not any re-written currently so for example /node will make it so the help button is not displayed on that page.

tallsimon’s picture

try <front>

TechnoBuddhist’s picture

@Darren,

So is there no way mod context help to look at the path?

so I can have different help for paths like;

user/43/notifications
user/43/notifications/taxonomy
user/43/messages
node-type1/group/node-id
node-type2/group/node-id

TechnoBuddhist’s picture

Looking at the code;

function _contexthelp_get_url($language = FALSE) {
...
...
  // Retrieve the current url from the browser location
  $url = ($_GET['q']) ? $_GET['q'] : $_POST['q'];

  // This changes the path to an aliased path
  $url=drupal_get_path_alias($url);
...
...

I can find out the aliased path(I use paths) but I just need to work out how to handle wildcards and I think we've cracked it!??

darren.ferguson’s picture

For wild cards i went the easy approach right now and put the % in there since it is the sql wildcard for one or more in between.

TechnoBuddhist’s picture

OK. I think I got it. And I hope I'm not wasting time here, cos I couldn't see anything about this in the docs.

With my line of code in place:

  // This changes the path to an aliased path
  $url=drupal_get_path_alias($url);

I checked the code and where you enter the Url for the help, you can use '%' as a wildcard.

user/%/notifications
user/%/notifications/taxonomy
user/%/messages
node-type1/%/% - works because the 1st % could be any group and 2nd is a node id
node-type2/%/%

Still testing but seems to be ok so far!!

Thanks for Context Help guys!!!

darren.ferguson’s picture

Status: Active » Closed (fixed)
Morn’s picture

Version: 6.x-1.0-rc4 » 6.x-1.0
Status: Closed (fixed) » Active

Please include the use of the URL Wildcard (%) in the description of the URl field

darren.ferguson’s picture

Status: Active » Closed (fixed)