|
|
|
|
FlexWebListExamplesThese are some simple examples to show how to use the basic features of the FlexWebListPlugin. Please create some subwebs in the Sandbox web for a better illustration of the examples below.On this page:
No params%FLEXWEBLIST%Public System Influencing order%FLEXWEBLIST{webs="%MAINWEB%,public,%SYSTEMWEB%"}%Main Public System Controlling subwebsNo subwebs%FLEXWEBLIST{subwebs="none"}%Public System Only subwebs%FLEXWEBLIST{subwebs="only"}% Subwebs of "Sandbox"%FLEXWEBLIST{subwebs="Sandbox"}% Using include and excludeExclude TestCases and Trash webs%FLEXWEBLIST{exclude="(TestCases|Trash).*" subwebs="none"}%Public System 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="Applications" format="$indent * [[$web.%HOMETOPIC%][$name]]$n" markerformat="$percntFLEXWEBLIST{ include=\"^$web.*\" format=\"$dollarindent * [[$dollarweb.%HOMETOPIC%][$dollarname]]$dollarn\" }$percnt" }% Twisty weblistneeds the Foswiki:Extensions/TwistyPlugin%FLEXWEBLIST{ header="<ul><li>" format=" $percntTWISTY{ link=\"$name $percntIF{\"$nrsubwebs > 0\" then=\"($nrsubwebs)\"}$percnt\" }$percnt" separator="$percntENDTWISTY$percnt</li><li>" footer="</li></ul>" }% Sitemap
Public Public Web that is accessible worldwide
System Welcome, Registration, and other StartingPoints; Foswiki history & Wiki style; All the docs...
Mapping names%FLEXWEBLIST{ map="TestCases=Tests,%SYSTEMWEB%=Documentation,%USERSWEB%=Users" format="$indent * [[$web.%HOMETOPIC%][$name]]$n" }% Marking a selectionUsing marker%FLEXWEBLIST{ exclude="(TestCases|Trash).*" format="$indent * <span class=\"$marker\"> $web </span>$n" marker="foswikiAlert" selection="%BASEWEB%" }%
Using markerformat%FLEXWEBLIST{ exclude="(TestCases|Trash).*" format="$indent * [[$web.%HOMETOPIC%][$name]]$n" markerformat="$indent * [[$web.%HOMETOPIC%][<span class=\"foswikiAlert\">$name</span>]]$n" selection="%BASEWEB%" }% |