Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Added: | ||||||||
> > |
Flex Web-List ExamplesThese are some simple examples to show how to use the basic features of the FlexWebListPlugin. Please create some sub-webs in the Sandbox web for a better illustration of the examples below.On this page:
No params%FLEXWEBLIST%CM CM/Public Main PP PP/Public Public ShowCase Students Students/PostGraduates Students/UnderGraduates TWiki Influencing order%FLEXWEBLIST{webs="%USERSWEB%,public,%SYSTEMWEB%"}%Public CM CM/Public Main PP PP/Public ShowCase Students Students/PostGraduates Students/UnderGraduates TWiki Controlling subwebsNo subwebs%FLEXWEBLIST{subwebs="none"}%CM Main PP Public ShowCase Students TWiki Only subwebs%FLEXWEBLIST{subwebs="only"}%CM/Public PP/Public Students/PostGraduates Students/UnderGraduates Subwebs of "Sandbox"%FLEXWEBLIST{subwebs="Sandbox"}% Using include and excludeExclude TestCases and Trash webs%FLEXWEBLIST{exclude="TestCases|Trash.*" subwebs="none"}%CM Main PP Public ShowCase Students TWiki Include Sandbox web and all of its subwebs%FLEXWEBLIST{include="Sandbox(/\w+)?"}% Creating listsSimple nested list%FLEXWEBLIST{format="$indent * [[$web.%HOMETOPIC%][$name]]$n"}% Nested list using HTML%FLEXWEBLIST{ header="<ul>" format="<li>[[$web.%HOMETOPIC%][$name]]" separator="</li>" footer="</li></ul>" }% Nested calls to FLEXWEBLIST%FLEXWEBLIST{ exclude="TestCases|Trash.*" subwebs="none" selection="Sandbox" format="$indent * [[$web.%HOMETOPIC%][$name]]$n" markerformat="$percntFLEXWEBLIST{ webs=\"$web\" format=\"$dollarindent * [[$dollarweb.%HOMETOPIC%][$dollarname]]$dollarn\" }$percnt" }% Twisty weblistneeds the TWiki:Plugins/TwistyPlugin![]() %FLEXWEBLIST{ header="<ul>" format="<li> $percntTWISTYBUTTON{ id=\"twisty_weblist_$web\" link=\"$name ($nrsubwebs)\" }$percnt" separator="</li>" subheader="$percntTWISTYTOGGLE{ id=\"twisty_weblist_$web\" mode=\"div\" }$percnt<ul>" subfooter="</li></ul>$percntENDTWISTY$percnt" footer="</li></ul>" }%
Twisty navigationneeds the TWiki:Plugins/TwistyPlugin![]() ![]() %FLEXWEBLIST{ webs="%USERSWEB%,public,%SYSTEMWEB%" exclude="TestCases|Trash.*" header="<ul>" format="<li>[[$web.%HOMETOPIC%][$name]] $percntIFDEFINEDTHEN{\"$nrsubwebs \" as=\"0 \"}$percnt $percntELSEDEFINED$percnt $percntTWISTYBUTTON{ id=\"sitemap_$web\" buttonmode=\"span\" showimg=\"$percntICONURLPATH{\"toggleopenleft\"}$percnt\" hideimg=\"$percntICONURLPATH{\"toggleclose\"}$percnt\" }$percnt $percntFIDEFINED$percnt" separator="</li>$n" subheader="$percntTWISTYTOGGLE{id=\"sitemap_$web\"}$percnt<ul>" subfooter="</li></ul>$percntENDTWISTY$percnt" footer="</ul>" }%
Sitemap CM Condensed Matter Physics Public Condensed Matter Group Public Information PP Particle Physics Group Public Welcome Public Information ShowCase A show case for some of the new features in this TWiki Students Students Web Mapping names%FLEXWEBLIST{ map="TestCases=Tests,%SYSTEMWEB%=System,%USERSWEB%=Home" format="$indent * [[$web.%HOMETOPIC%][$name]]$n" }% Marking a selectionUsing marker%FLEXWEBLIST{ exclude="TestCases|Trash.*" format="$indent * <span class=\"$marker\"> $web </span>$n" marker="twikiAlert" selection="%BASEWEB%" }%
Using markerformat%FLEXWEBLIST{ exclude="TestCases|Trash.*" format="$indent * [[$web.%HOMETOPIC%][$name]]$n" markerformat="$indent * [[$web.%HOMETOPIC%][<span class=\"twikiAlert\">$name</span>]]$n" selection="%BASEWEB%" }%Related Topics: FlexWebListNavi, FlexWebListPlugin, FlexWebListTree |