Flex Web-List Navigation

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.

Note: The TWiki:Plugins.IfDefinedPlugin needs to be installed.

If you want to hide the web navigation from TWikiGuests 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="%USERSWEB%,User,People,public,%SYSTEMWEB%" 
 exclude="(TestCases|Trash).*" 
 adminwebs="Applications.*"
 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 \" glue=\"off\"}$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%

Related Topics: FlexWebListExamples, FlexWebListPlugin, FlexWebListTree

r2 - 17 Jul 2015 - 04:33:33 - TWikiAdminUser
 
Linux & Open Source for AT91 Microchip Microprocessors

Copyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.

Linux® is the registered trademark of Linus Torvalds in the U.S. and other countries.

Microchip and others, are registered trademarks or trademarks of Microchip Technology Inc. and its subsidiaries. This site is powered by the TWiki collaboration platform

Arm® and others are registered trademarks or trademarks of Arm Limited (or its affiliates). Other terms and product names may be trademarks of others.

Ideas, requests, contributions ? Connect to LinksToCommunities page.

Syndicate this siteRSS ATOM