|
Cookbook /
ExpandingMenu2Summary: Provides markup to create an (automatically) expanding menu
Version: 2007-08-04
Prerequisites: pmwiki
Status:
Maintainer: pwuille
Discussion: ExpandingMenu2-Talk
GoalCreate a nested expanding menu (eg. in a sidebar) that keeps the current page visible, and have control over what parts of the menu-tree are visible (expanded). FeaturesIt provides these features:
SolutionPut emenu2.phpΔ in your cookbook directory (you may have to create it). Add the following line to local/config.php: UseSurround a normal menu with Just like Cookbook.ExpandingMenu, it will add a By default, all nodes that have a link to the current page (and their parent nodes) will be expanded. It is however possible to additionally make other nodes visible and expanded, by putting
in any page (not necessary the page containing the menu). See the example below.
The effect of this directive can be reverted with Example(copy and paste to your page, it won't work here)
This would make the Documentation node expanded while you're visiting any of the pages beneath (Download and Install, FAQ, Release Notes or ChangeLog). You could, however, choose to make this node also expand when you're on the Home Page, by placing a NotesThe code is somewhat based on that of Cookbook.ExpandingMenu by dstebila. Release Notes
See Also
Contributors~pwuille CommentsSee discussion at ExpandingMenu2-Talk User notes +1: If you use, used or reviewed this recipe, you can add your name. These statistics appear in the Cookbook listings and will help newcomers browsing through the wiki. |