|
Cookbook /
DynTrailMenuSummary: 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 recipeI'd like to have a dynamic (expanding) menu based on an (existing) WikiTrail. How can I achieve this? DescriptionDynTrailMenuΔ creates an expanding menu using a WikiTrail page. While TrailMenu does not allow to use external URLs, text items or spacers, DynTrailMenu does. 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. InstallationTo 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) NotesPlease feel free to submit your suggestions or questions below!
Release Notes
See AlsoContributorsComments |