Just want to see if this is the best way to do this. If so I will post my notes.
I wanted to use advanced help in the admin area of the site or admin tasks (node/add etc)
In this case I need things to be dynamic so a non-coder can manage it. So this is how I did it.

1. I made my custom adv_help module and made 1 block.

This block has one function

if ( arg(0) == 'node' || arg(0) == 'admin') {
  $topic = implode('-', arg());
  $output = theme('advanced_help_topic', array(
    'module' => 'fj_advanced_help',
    'topic' => $topic,
  ));
  return $output . '</br>';
}

And it is assigned to one theme which is the admin theme and one user role administrator. We will have a lot of help files but later I will check to see if there is a matching file before I output.

Then when the user makes a help file all they have to do is name it like the path eg node/add the filename would be node-add.html or node/add/page node-add-page.html

2. The ini file then is dynamic (still some bugs here but will wrap it up shortly) so the user does not have to manage this.

So once I enable my module, set the block they just make and edit/create the files in the help folder and it will just then show the correct help link on the appropriate pages.

Or am I missing the obvious?

Thanks for this great module.
Al

Comments

gisle’s picture

Version: 7.x-1.0 » 7.x-1.x-dev
Issue summary: View changes
Status: Active » Closed (won't fix)

As maintainer, I usually do not have capacity to answer custom devlopment questions.

In this case, two and a half years has passed without a single reply from the community. Time to close.