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
%FLEXWEBLIST%
CasoniVecchi? CasoniVecchi?/En Hacklab
KulturnaStrategija? Main
MojaPUO? MojaPUO?/En Monteparadiso Otpad Participator Rojc
RrrrEee? RrrrEee?/En
RrrrEee?/Si Sandbox System Transhackmeeting
VolonterskiCentar? VolonterskiCentar?/En
ZelTel? Zelenitelefon Zelenitelefon/En
Influencing order
%FLEXWEBLIST{webs="%USERSWEB%,public,%SYSTEMWEB%"}%
Main
CasoniVecchi? CasoniVecchi?/En Hacklab
KulturnaStrategija? MojaPUO? MojaPUO?/En Monteparadiso Otpad Participator Rojc
RrrrEee? RrrrEee?/En
RrrrEee?/Si Sandbox System Transhackmeeting
VolonterskiCentar? VolonterskiCentar?/En
ZelTel? Zelenitelefon Zelenitelefon/En
Controlling subwebs
No subwebs
%FLEXWEBLIST{subwebs="none"}%
CasoniVecchi? Hacklab
KulturnaStrategija? Main
MojaPUO? Monteparadiso Otpad Participator Rojc
RrrrEee? Sandbox System Transhackmeeting
VolonterskiCentar? ZelTel? Zelenitelefon
Only subwebs
%FLEXWEBLIST{subwebs="only"}%
CasoniVecchi?/En
MojaPUO?/En
RrrrEee?/En
RrrrEee?/Si
VolonterskiCentar?/En Zelenitelefon/En
Subwebs of "Sandbox"
%FLEXWEBLIST{subwebs="Sandbox"}%
Using include and exclude
Exclude TestCases and Trash webs
%FLEXWEBLIST{exclude="(TestCases|Trash).*" subwebs="none"}%
CasoniVecchi? Hacklab
KulturnaStrategija? Main
MojaPUO? Monteparadiso Otpad Participator Rojc
RrrrEee? Sandbox System Transhackmeeting
VolonterskiCentar? ZelTel? Zelenitelefon
Include Sandbox web and all of its subwebs
%FLEXWEBLIST{include="Sandbox(/\w+)?"}%
Sandbox
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>"
}%
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>"
}%
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Sitemap
Mapping names
%FLEXWEBLIST{
map="TestCases=Tests,%SYSTEMWEB%=Documentation,%USERSWEB%=Users"
format="$indent * [[$web.%HOMETOPIC%][$name]]$n"
}%
Marking a selection
Using marker
%FLEXWEBLIST{
exclude="(TestCases|Trash).*"
format="$indent * <span class=\"$marker\"> $web </span>$n"
marker="foswikiAlert"
selection="%BASEWEB%"
}%
- CasoniVecchi?
- Hacklab
- KulturnaStrategija?
- Main
- MojaPUO?
- Monteparadiso
- Otpad
- Participator
- Rojc
- RrrrEee?
- Sandbox
- System
- Transhackmeeting
- VolonterskiCentar?
- ZelTel?
- Zelenitelefon
Using markerformat
%FLEXWEBLIST{
exclude="(TestCases|Trash).*"
format="$indent * [[$web.%HOMETOPIC%][$name]]$n"
markerformat="$indent *
[[$web.%HOMETOPIC%][<span class=\"foswikiAlert\">$name</span>]]$n"
selection="%BASEWEB%"
}%

Copyright © by the contributing authors. All material on this site is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki?
Send feedback