Log In | Users | Register
Welcome, Registration, and other StartingPoints; Foswiki history & Wiki style; All the docs...
Edit | Attach | New | Raw | Diff | Print | Subscribe | Tools

FlexWebListNavi

The fragment below can be used in a sidebar navigation to establish a "twisted" subweb navigation. Use it by adding %INCLUDE{"System.FlexWebListNavi"}% to your sidebar navigation

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

%STARTINCLUDE%%TWISTY{
  prefix="<h2 >"
  suffix="</h2>"
  remember="on" 
  firststart="show"
  link="Webs "
  buttonmode="span"
  mode="div"
  showimg="%ICONURLPATH{"toggleclose-mini"}%"
  hideimg="%ICONURLPATH{"toggleopen-mini"}%"
}%
%FLEXWEBLIST{
  webs="%MAINWEB%,User,People,public,%SYSTEMWEB%" 
  exclude="^(TestCases|Trash).*" 
  adminwebs="Applications.*"
  map="System=Documentation"
  header="<ul>"
  format="<li
      $percntIFDEFINED{\"%BASEWEB%\" as=\"$web\"
        then=\" class='natCurrentWeb'\"
      }$percnt>
    <a href=\"%SCRIPTURLPATH{"view"}%/$web/%HOMETOPIC%\" $percntIFDEFINED{\"%BASEWEB%\" as=\"$web\" then=\" class='foswikiCurrentTopicLink'\" }$percnt>$name</a>
    $percntIFDEFINEDTHEN{\"$nrsubwebs \" as=\"0 \"}$percnt
    $percntELSEDEFINED$percnt
      $percntTWISTYBUTTON{
        id=\"subweb_$web\"
        remember=\"on\"
        buttonmode=\"span\"
        showimg=\"$percntICONURLPATH{\"toggleclose-mini\"}$percnt\"
        hideimg=\"$percntICONURLPATH{\"toggleopen-mini\"}$percnt\"
        link=\"\"
      }$percnt
    $percntFIDEFINED$percnt"
  footer="</li></ul>"
  separator="</li>"
  subheader="$percntTWISTYTOGGLE{id=\"subweb_$web\" mode=\"div\"}$percnt<ul class=\"natSubWebs\">"
  subfooter="</li></ul>$percntENDTWISTYTOGGLE$percnt"
}%
%ENDTWISTY%%STOPINCLUDE%

Test

spacer
This site is managed by the Center for Climate Systems Modeling (C2SM).
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 C2SM Wiki? Send feedback