These 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.
No params (almost)
%FLEXWEBLIST{separator=", " subheader=", "}%
adminwebs, exclude, footer, format="
HomeHome<ul class, separator, subwebs, webs, }
Influencing order
%FLEXWEBLIST{webs="%USERSWEB%,public,%SYSTEMWEB%" separator=", " subheader=", "}%
adminwebs, exclude, footer, format="HomeHome<ul class, separator, subwebs, webs, }
Controlling subwebs
No subwebs
%FLEXWEBLIST{subwebs="none" separator=", " subheader=", "}%
adminwebs, exclude, footer, format="<a href, separator, subwebs, webs, }
Only subwebs
%FLEXWEBLIST{subwebs="only" separator=", " subheader=", "}%
header="<a href, separator, subwebs, webs, }
Include Sandbox web and all of its subwebs
%FLEXWEBLIST{include="Sandbox(\.\w+)?" separator=", " subheader=", "}%
Creating lists
Simple 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>"
}%
- adminwebs
- exclude
- footer
- format="
- <a href
- [[ header="<li class='hasSubMenu mobileMenu'>Home
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 weblist
needs 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>"
}%
-
-
-
-
-
WebHome][Home]]<span id="twistyIdSystemFlexWebListExamples3106hide" style="display:none" class="twistyTrigger foswikiUnvisited twistyInited">
WebHome][Home]] <div class="twistyPlugin">