Questions answered by this recipe
I'd like to have a dynamic (expanding) menu based on an (existing) WikiTrail. How can I achieve this?
For information in German language, please see: http://www.webbird.de/?n=PmWiki/DynTrailMenu
The main goal when creating this recipe was to have a single Trail page as base for a Sitemap and the Menu at the same time.
to a local customization file.
To use this recipe, add the following markup to your menu page (f.e. Site.SideBar):
(:pagelist trail=Cookbook.TrailMenu fmt=dyntrailmenu:)
...where "Cookbook.TrailMenu" is the name of your WikiTrail page, of course. (See PmWiki.WikiTrails for details on how to use WikiTrails)
Please feel free to submit your suggestions or questions below!
- Removed some occurences of /e regexp modifier
- Found (and fixed) some errors with PMWiki 2.2.x and current PHP versions
- First release.
- Bugfix: "Spacers" (empty lines) did not work correctly
See discussion at DynTrailMenu-Talk