Foswiki on GitHub is open for business! Next release meeting: Monday Nov. 17, 1300Z

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.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 attachments
I Attachment Action Size Date Who Comment
MenuListPlugin.md5md5 MenuListPlugin.md5 manage 0.2 K 01 Aug 2009 - 12:56 SvenDowideit  
MenuListPlugin.sha1sha1 MenuListPlugin.sha1 manage 0.2 K 01 Aug 2009 - 12:57 SvenDowideit  
MenuListPlugin.tgztgz MenuListPlugin.tgz manage 5.9 K 01 Aug 2009 - 12:56 SvenDowideit  
MenuListPlugin.zipzip MenuListPlugin.zip manage 7.5 K 01 Aug 2009 - 12:55 SvenDowideit  
MenuListPlugin_installerEXT MenuListPlugin_installer manage 4.1 K 01 Aug 2009 - 12:56 SvenDowideit  
Edit | Attach | Print version | History: r9 | r7 < r6 < r5 < r4 | Backlinks | View wiki text | Edit WikiText | More topic actions...
Topic revision: r6 - 09 Dec 2009, CrawfordCurrie
 
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. see CopyrightStatement. Creative Commons License