Closed (fixed)
Project:
Context Help
Version:
6.x-1.0-rc2
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
14 Apr 2009 at 17:14 UTC
Updated:
16 Apr 2009 at 22:34 UTC
As far as I can see the help button is shown all time and in the same way - regardless if there is a help content for the current path or not. Thats why I was thinking about some possible improvements to the help button:
- add a css class to allow to distinguish if there is a help content for the current page or not
- create a settings option to enable / disable the help-button on certain pages
- create a settings option to enable help button only for pages with help content (similar could be done by css if there is a css class for the button as described above)
- put the tabs of the help box into a submenu of the help button and show them on mouse over.
Thanks, for this nice module.
Comments
Comment #1
darren.ferguson commentedYou are correct the help button is always shown on the screen. Going through the pieces below:
1. Button is named so we can get the div from that using jquery.parent('div') based off that not sure what you are referring too to distinguish if help is available for that page? Do you mean if no current help then add the class ?
2. Yes creating a settings option to enable and disable is a good idea, will look at how to efficiently add this too the module.
3. Yes this can be done where if there is no help for that page the button does not display will look at implementing.
4. I have no plans for this for the moment since it would take a lot to achieve and detatch from the current way the module works
If you can let me know what you mean for number 1 i definitely believe 1, 2 and 3 are very implementable and should be in the module if 1 is what i am thinking.
As for 4 i do not think it will make it into the module at this time but possibly at a later date
Comment #2
osopolarto 1: I mean to just add a class like "help_absent" or for the positive case "help_available" to the button or the divs around the button. I'm not sure if you need to do this by the use of jquery. Maybe it already can be done when you build the button so that it also may work without js. ... ok I see, currently context help isn't able to work without js.
to 3: But leave it to the Site-Admin if he wants to hide the help button if there is no help for the current page.
Comment #3
darren.ferguson commentedHave completed most of the tasks above in this one.
1. Have added class to the help dialog if there is help for the current page.
2. Added the administration option for system administrators to decide whether they want the help button to be displayed on pages with no help in the Current help portion.
Per discussion above number 4 in the original setting will not be implemented in this go round since the module was not initiallly designed that way.
Number 2 a list of pages the administrator does not want to show the help button on is the only piece left too be added to the module for this feature request.
http://drupal.org/cvs?commit=197854 is the cvs commit for the above functionality it should be in the development branch tonight for the module.
Comment #4
darren.ferguson commentedHave added the functionality to specify a list of the urls that you do not want the help button to appear on. Currently not supporting the wild card optimization but will hopefully get to that in the future for the module.
Believe this issue is resolved for the current issue above, will open another for the wild card problem
http://drupal.org/cvs?commit=197884 is the cvs commit for this functionality that has been created.
Comment #5
darren.ferguson commentedOpened #436070 in order to track the wild card support problem