Recent Changes - Search:

Cookbook

PmWiki

pmwiki.org

DynTrailMenu

Summary: Create a dynamic (expanding) menu based on a trail page
Version: 2008-09-02
Prerequisites: none
Status: stable
Maintainer: Webbird
Categories: WikiTrails, Menus

Questions answered by this recipe

I'd like to have a dynamic (expanding) menu based on an (existing) WikiTrail. How can I achieve this?

Description

DynTrailMenuΔ creates an expanding menu using a WikiTrail page. While TrailMenu does not allow to use external URLs, text items or spacers, DynTrailMenu does.

See this in action

For information in German language, please see: http://www.webing.de/webbird/PmWiki/DynTrailMenu(approve links)

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.

Installation

To use DynTrailMenu.phpΔ, simply download it, copy it into the cookbook/ directory, and add

    include_once('$FarmD/cookbook/dyntrailmenu.php'); 

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)

Notes

Please feel free to submit your suggestions or questions below!

  • This recipe was last tested on PmWiki version: 2.1.27

Release Notes

2008-08-31
First release.
2008-09-02
Bugfix: "Spacers" (empty lines) did not work correctly

See Also

WikiTrails

Contributors

Webbird

Comments

Edit - History - Print - Recent Changes - Search
Page last modified on October 29, 2008, at 04:09 AM