The fragment below can be used in a sidebar navigation to establish a "twisted" subweb navigation.
Use it by adding
%INCLUDE{"TWiki.FlexWebListNavi"}% to your
WebLeftBar or
TWikiWebSideBar.
If you want to hide the web navigation from
TWikiGuests? then uncomment the following:
%STARTINCLUDE%<nop><h2>%TWISTYBUTTON{id="subwebs"
link="Webs "
remember="on"
firststart="show"
showimg="%ICONURLPATH{"toggleopen-mini"}%"
hideimg="%ICONURLPATH{"toggleclose-mini"}%"
}%
</h2>
%TWISTYTOGGLE{id="subwebs"}%
%~~ FLEXWEBLIST{
~~~ webs="%MAINWEB%,User,People,public,%TWIKIWEB%"
~~~ exclude="TestCases|Trash.*"
~~~ header="<ul>"
~~~ format="<li
~~~ $percntIFDEFINED{\"%BASEWEB%\" as=\"$web\"
~~~ then=\" class='natCurrentWeb'\"
~~~ }$percnt>
~~~ <a href=\"%SCRIPTURLPATH{"view"}%/$web/%HOMETOPIC%\"
~~~ $percntIFDEFINED{\"%BASEWEB%\" as=\"$web\"
~~~ then=\" class='twikiCurrentTopicLink'\"
~~~ }$percnt>$name</a>
~~~ $percntIFDEFINEDTHEN{\"$nrsubwebs \" as=\"0 \"}$percnt
~~~ $percntELSEDEFINED$percnt
~~~ $percntTWISTYBUTTON{
~~~ id=\"subweb_$web\"
~~~ remember=\"on\"
~~~ buttonmode=\"span\"
~~~ showimg=\"$percntICONURLPATH{\"toggleopen-mini\"}$percnt\"
~~~ hideimg=\"$percntICONURLPATH{\"toggleclose-mini\"}$percnt\"
~~~ link=\" \"
~~~ }$percnt
~~~ $percntFIDEFINED$percnt"
~~~ footer="</ul>"
~~~ separator="</li>"
~~~ subheader="$percntTWISTYTOGGLE{id=\"subweb_$web\"}$percnt<ul class=\"natSubWebs\">"
~~~ subfooter="</li></ul>$percntENDTWISTYTOGGLE$percnt"
~~~ }%
%ENDTWISTYTOGGLE%%STOPINCLUDE%