Closed (works as designed)
Project:
Advanced Help
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
3 Apr 2009 at 20:24 UTC
Updated:
25 Mar 2015 at 22:13 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
e2thex commentedI am posting a patch that adds hook_advanced_help_topics
it should return an array of topics with the name as its key. each array must have
a title, and path (the location of the content, may be a external url or a drupal path) and has the options of
'weight'
'parent'
'popup width'
'line break'
'navigation'
'css'
so it might return
These will then (hopefully) be topics in the advanced help system.
Comment #2
e2thex commentedI add some comment to the patch. if there is anything else I should do let me know
Comment #3
robertdouglass commentedThe patch might be very helpful, but in the meantime, you can also use the HelpInject module to inject in a non-obtrusive way. http://drupal.org/project/helpinject
Perhaps with this hook the HelpInject module will become simpler?
Comment #4
e2thex commentedYes help inject is pretty cool and it would have let us get the topics we wanted , but I was hoping to do the same idea but keep it all in nodes, so that I would not have to export and install, when ever they change the help.
I built a module to take advantage of the patch (a little proof of concept, which allows nodes to be help topics, and then another one to insert the topic into forms. The first one I like the second one I do not. But it looks like help inject does that really well, so there might be some overlap that could be worked out. I wrote a post about what I was trying to do here about it. I would love to hear if you think some of it could be integrated in helpinject or if there was some way for them to work together.
the module is up Advanced Help Topic Nodes
Comment #5
robertdouglass commentedJust for clarification - you can leave your help in your book nodes when using Help Inject. If you don't need to export the help you don't have to. But that's off topic here.
Comment #6
bramface commentedI found that I was getting Schema errors around the declaration of default values for the two text fields. Deleting
from both the name and parent declarations in advanced_help_topic_nodes.install solved that.
We'll see if it creates any other difficulties.
Comment #7
gisleThis Advanced Help framework isn't meant to store data in the database, it's meant to provide help for modules that can be standalone. Putting this into the database in the shape of nodes seems like what you want something else.