URL isn't added in the "Create Help" link from the help popup

ChrisBryant - June 2, 2009 - 18:57
Project:Context Help
Version:6.x-1.0-rc4
Component:Code
Category:bug report
Priority:normal
Assigned:darren.ferguson
Status:active
Description

When going to any page and clicking the main "Help" button and then clicking the "Create Help" link, it seems the page URL should be appended to the node/add url in the form:

http://example.com/node/add/contexthelp?url=node/2

On my test site the link just looks like this:

http://example.com/node/add/contexthelp?url=

Thus on the node/add page, the URL field isn't populated. I've tried entering a manual url in there such as "node/2" but the context sensitive help doesn't show when clicking the "Help" button/link.

#1

ChrisBryant - June 2, 2009 - 21:50

I just tested this further on another site (different environment/modules) and the problem is the same.

#2

darren.ferguson - June 2, 2009 - 22:00

Can you please try this with the development branch since changes to the module have been made that made it more stable.

#3

ChrisBryant - June 5, 2009 - 02:02

Thanks for the quick reply! I changed to the dev version and now the "Help" link on the pages doesn't show at all.

I started with a new site/db install, using garland theme & don't have any modules enabled other than the ones required for Context Help. If I disable all the styles on the page I see this:

X

    * Current Page
    * All Pages
    * FAQ

No context help available for this section
Create Help
Loading....
Loading....

Seems like a javascript error of some sort? The only thing I can this is that I'm testing with Drupal 6.10. I can test with 6.12 and post back if anything is different.

#4

darren.ferguson - June 14, 2009 - 15:07

Did the views and cck nodes get created correctly for the system and is the module configured with the correct node types?

#5

sarasioux - August 22, 2009 - 20:11

I finally got the URL to show up in the link by enabling Internationalization.

Also, the content types weren't created successfully. I tried several different ways but I couldn't figure it out, and ended up importing manually.

Once I got the URL to show up in the link, the nodes I created still didn't show up proper. Eventually discovered that it requires them to be in language English, instead of Language Neutral.

#6

darren.ferguson - August 27, 2009 - 22:09
Assigned to:Anonymous» darren.ferguson

Not sure why it would need internationalization but will check the code to make sure i did not create an issue

The English piece is because the context help node should have a language incase your using them in different ones that could be the issue for the internationalization also.

Will check before final rc possibly then full 1.0 release

#7

ptoly - October 26, 2009 - 17:45

I found two places where there is are internationalization dependencies:
1. In the .module file, line 417
$query .= " AND node.language = '%s' AND '%s' LIKE {%s}.field_url_value";
In a Drupal site that has not been set up for internationalization the node.language column is empty.

2. Also in the .module file, line 329
if (!function_exists('locale_language_list'))
This function only exists if the locale module is activated.

Great module!
Hope this helps.

 
 

Drupal is a registered trademark of Dries Buytaert.