FlexWebListTree

The fragment below can be used in a sidebar navigation to establish a folder-like subweb navigation. This uses the jqTreeview widget of the Foswiki:Extensions/JQueryPlugin.

Use it by adding %INCLUDE{"System.FlexWebListTree"}% to your sidebar navigation.

If you want to hide the web navigation from WikiGuests then uncomment the following:

%STARTINCLUDE%<!-- flexweblist tree -->
%TWISTY{
  prefix="<h2 >"
  link="Webs "
  suffix="</h2>"
  showimg="%ICONURLPATH{"plus"}%"
  hideimg="%ICONURLPATH{"minus"}%"
  remember="on"
}%
<div class="jqTreeview closed unique">
%~~ FLEXWEBLIST{
~~~   webs="%MAINWEB%,User,People,public,%SYSTEMWEB%" 
~~~   exclude="^(TestCases|Trash).*" 
~~~   adminwebs="Applications.*"
~~~   map="%SYSTEMWEB%=System"
~~~   header="<ul>"
~~~   format="<li><a href=\"$url\" title=\"$sitemapuseto\">$name</a>"
~~~   separator="</li>"
~~~   footer="</li></ul>"
~~~   subheader="<ul class=\"natSubWebs\">"
~~~ }%
</div>
%ENDTWISTY%
%STOPINCLUDE%

Test

Webs Webs

Topic revision: r1 - 2008-08-14 - 13:39:23 - ProjectContributor
 
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