Skip to content

Commit

Permalink
Item1357: add an example in the hope its explanitory - I tried to do …
Browse files Browse the repository at this point in the history
…this with TML and css only, but ran out of time - if anyone can tell me a way, I'd be _very_ interested

git-svn-id: http://svn.foswiki.org/trunk/MenuListPlugin@3245 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
SvenDowideit authored and SvenDowideit committed Mar 22, 2009
1 parent 4780afa commit 61b9780
Showing 1 changed file with 77 additions and 5 deletions.
82 changes: 77 additions & 5 deletions data/System/MenuListPlugin.txt
@@ -1,34 +1,106 @@
---+!! !MenuListPlugin
<!--
One line description, required for extensions repository catalog.
* Set SHORTDESCRIPTION = Folding menu list
* Set SHORTDESCRIPTION = Folding menu list
-->
%SHORTDESCRIPTION%

%TOC%

---++ Usage
Add =%<nop>MENULIST{}%= before a mult-level bullet list. If the currently viewed topic is in the list,
display the items leading up to this item,
all the nodes at the same level, and all this item's direct siblings.
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 =%<nop>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.

---++ Examples

if =MenuTopic= contains

<verbatim>
* 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
</verbatim>

and you added =%<nop>MENULIST{topic="MenuTopic"}%= to the WebLeftBar topic i the System web, then navigated to PatternSkinCssCookbook
you would get

* FoswikiSiteSkin
* MoveableTypeSkin
* PatternSkin
* PatternSkinCss
* PatternSkinColorSettings
* PatternSkinCssCookbook
* PatternSkinCssCookbookCenterPage
* PatternSkinCssCookbookEditTableStyle
* PatternSkinCssCookbookFonts
* PatternSkinCssCookbookNoLeftBar
* PatternSkinCssCookbookNoTopBar
* PatternSkinCustomization
* PatternSkinElements
* PatternSkinGraphics
* PatternSkinHeaderArt
* PatternSkinWebCreateNewTopicTemplate
* PlainSkin
* PrintSkin
* Skins
* SlionSkin
* WidgetsSkin

---++ Installation Instructions

%$INSTALL_INSTRUCTIONS%

---++ Info

Many thanks to the following sponsors for supporting this work:
* Acknowledge any sponsors here
* http://blackfin.com.au/

| Author(s): | Foswiki:Main.SvenDowideit |
| Copyright: | &copy; 2009 SvenDowideit@fosiki.com |
| License: | [[http://www.gnu.org/licenses/gpl.html][GPL 3 (Gnu General Public License)]] |
| Version: | %$VERSION% |
| Change History: | <!-- versions below in reverse order -->&nbsp; |
| 23 Mar 2009: | initial release |
| Dependencies: | %$DEPENDENCIES% |
| Home page: | http://foswiki.org/bin/view/Extensions/MenuListPlugin |
| Support: | http://foswiki.org/bin/view/Support/MenuListPlugin |
Expand Down

0 comments on commit 61b9780

Please sign in to comment.