MenuListPlugin

Folding menu list

Usage

Create a topic (in this example MenuTopic), containing a multi-level bullet list of topics you want to make a folding menu with.

Then add %MENULIST{topic="MenuTopic"}% to your sidebar.

If the currently viewed topic is in the list, MenuListPlugin will open up all the nodes leading up to where it is, and direct child nodes of this topic.

%MENULIST% parameters

parameter values default
mode collapse,full full
level what level of menu to show (single integer) all
format, separator see FormattedSearch bullet list
quiet in collapse mode, if you are not on a topic that is listed in the Menu topic, show nothing at all false
showlevel filters to only show menu entries of that level (works in both collapse and full mode) unset

Examples

if MenuTopic contains

   * FoswikiSiteSkin 
      * FoswikiSiteSkinNavigationTemplate 
   * MoveableTypeSkin 
   * PatternSkin 
      * PatternSkinCss 
      * PatternSkinColorSettings 
      * PatternSkinCssCookbook 
         * PatternSkinCssCookbookCenterPage 
            * PatternSkinCssCookbookCenterPageBorder 
         * PatternSkinCssCookbookEditTableStyle 
         * PatternSkinCssCookbookFonts 
         * PatternSkinCssCookbookNoLeftBar 
         * PatternSkinCssCookbookNoTopBar 
      * PatternSkinCustomization 
      * PatternSkinElements 
      * PatternSkinGraphics 
      * PatternSkinHeaderArt 
      * PatternSkinWebCreateNewTopicTemplate 
   * PlainSkin 
   * PrintSkin 
   * Skins 
      * SkinBrowser 
      * SkinTemplates 
   * SlionSkin 
      * SlionSkinColorSettings 
      * SlionSkinCss 
      * SlionSkinCssCookbook 
         * SlionSkinCssCookbookCenterPageBorder 
         * SlionSkinCssCookbookCenterPage 
         * SlionSkinCssCookbookEditTableStyle 
         * SlionSkinCssCookbookFonts 
         * SlionSkinCssCookbookNoLeftBar 
         * SlionSkinCssCookbookNoTopBar 
      * SlionSkinCustomization 
      * SlionSkinElements 
      * SlionSkinGraphics 
      * SlionSkinHeaderArt 
      * SlionSkinWebCreateNewTopicTemplate 
   * WidgetsSkin 

and you added %MENULIST{topic="MenuTopic"}% to the WebLeftBar? topic in the System web, then navigated to PatternSkinCssCookbook you would get

Installation Instructions

You do not need to install anything in the browser to use this extension. The following instructions are for the administrator who installs the extension on the server.

Open configure, and open the "Extensions" section. Use "Find More Extensions" to get a list of available extensions. Select "Install".

If you have any problems, or if the extension isn't available in configure, then you can still install manually from the command-line. See http://foswiki.org/Support/ManuallyInstallingExtensions for more help.

Info

Many thanks to the following sponsors for supporting this work:

Author(s): Foswiki:Main.SvenDowideit
Copyright: © 2009 SvenDowideit@fosiki_ta_bort_.com
License: GPL 3 (Gnu General Public License)
Version: 3193
Change History:  
1 Aug 2009: added quiet param for collapsed view
22 Jul 2009: add non-collapse mode, level and formatting so we can show a menu in a table
23 Mar 2009: initial release
Dependencies: None
Home page: http://foswiki.org/bin/view/Extensions/MenuListPlugin
Support: http://foswiki.org/bin/view/Support/MenuListPlugin

Topic revision: r1 - 2009-08-01 - 12:54:59 - WikiGuest
 
This site is powered by FoswikiCopyright © by the contributing authors. All material on this site is the property of the contributing authors.
Ideas, requests, problems regarding STALklubben? Send feedback