r0 - 21 May 2007 - 14:35:13 - TWikiContributorYou are here: CDL >  TWiki Web > FlexWebListNavi

FlexWebListNavi

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%
Edit | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History:  | More topic actions
TWiki.FlexWebListNavi moved from TWiki.FlexWebNavigation on 21 May 2007 - 14:31 by MichaelDaum? - put it back
 
Powered by CDL
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding CDL? Send feedback
Note: Please contribute updates to this topic on TWiki.org at TWiki:TWiki.FlexWebListNavi