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=", "}%
ACCACC.ACL, ACC.Bunch, ACC.Private, BusinessOffice, CBBCBB.NSF, CBETA, CESRCESR.Private, CHESSCHESS.FMB, CHESS.Maia, CHESS.XIMG, CHEXS, CLASSECLASSE.Inventory, CLASSE.Private.Communications, CLEOCLEO.PrivateCLEO.Private.AC, CLEO.Private.Administration, CLEO.Private.RunMan, CLEO.Private.SW, CMSPhase2MREFC, ComputingComputing.Blogs, Computing.Newsletter, Computing.Obsolete, Computing.Private, CosmologyCosmology.Private, DarkPhoton, ERLERL.Private, EngineeringDesignDrafting, G2, HEPHEP.DBSWorkshop, HEP.SWIG, HLLHCCMSMREFC, HMF, HumanResourcesHumanResources.Private, ILCILC.Americas, ILC.CesrTAILC.CesrTA.Proposal, ILC.DampingRingsILC.DampingRings.AreaLeaders, ILC.DampingRings.CTA09, ILC.DampingRings.ILCDR06, ILC.DampingRings.ILCDR07_KEK, ILC.DampingRings.ILCDR08, ILC.DampingRings.S3TaskForce, ILC.PrivateILC.Private.CesrTA, ILC.WWS, MacCHESS, Main, People, PhotocathodeBrightBeams, REUREU.Private, SRFSRF.PrivateSRF.Private.Documentation, SRF.Private.PCsrfcn1, SafetySafety.HandbookSafety.Handbook.PrivateSafety.Handbook.Private.ExternalResources, SandboxSandbox.TestWeb, Sandbox.Testauth, System, TheoryTheory.Private, Trash.Communications, Trash.Documents, Trash.Phase2MREFC, WebDevWebDev.Private, XLEAP
Influencing order
%FLEXWEBLIST{webs="%USERSWEB%,public,%SYSTEMWEB%" separator=", "}%
Main, ACCACC.ACL, ACC.Bunch, ACC.Private, BusinessOffice, CBBCBB.NSF, CBETA, CESRCESR.Private, CHESSCHESS.FMB, CHESS.Maia, CHESS.XIMG, CHEXS, CLASSECLASSE.Inventory, CLASSE.Private.Communications, CLEOCLEO.PrivateCLEO.Private.AC, CLEO.Private.Administration, CLEO.Private.RunMan, CLEO.Private.SW, CMSPhase2MREFC, ComputingComputing.Blogs, Computing.Newsletter, Computing.Obsolete, Computing.Private, CosmologyCosmology.Private, DarkPhoton, ERLERL.Private, EngineeringDesignDrafting, G2, HEPHEP.DBSWorkshop, HEP.SWIG, HLLHCCMSMREFC, HMF, HumanResourcesHumanResources.Private, ILCILC.Americas, ILC.CesrTAILC.CesrTA.Proposal, ILC.DampingRingsILC.DampingRings.AreaLeaders, ILC.DampingRings.CTA09, ILC.DampingRings.ILCDR06, ILC.DampingRings.ILCDR07_KEK, ILC.DampingRings.ILCDR08, ILC.DampingRings.S3TaskForce, ILC.PrivateILC.Private.CesrTA, ILC.WWS, MacCHESS, People, PhotocathodeBrightBeams, REUREU.Private, SRFSRF.PrivateSRF.Private.Documentation, SRF.Private.PCsrfcn1, SafetySafety.HandbookSafety.Handbook.PrivateSafety.Handbook.Private.ExternalResources, SandboxSandbox.TestWeb, Sandbox.Testauth, System, TheoryTheory.Private, Trash.Communications, Trash.Documents, Trash.Phase2MREFC, WebDevWebDev.Private, XLEAP
Controlling subwebs
No subwebs
%FLEXWEBLIST{subwebs="none" separator=", "}%
ACC, BusinessOffice, CBB, CBETA, CESR, CHESS, CHEXS, CLASSE, CLEO, CMSPhase2MREFC, Computing, Cosmology, DarkPhoton, ERL, EngineeringDesignDrafting, G2, HEP, HLLHCCMSMREFC, HMF, HumanResources, ILC, MacCHESS, Main, People, PhotocathodeBrightBeams, REU, SRF, Safety, Sandbox, System, Theory, WebDev, XLEAP
Only subwebs
%FLEXWEBLIST{subwebs="only" separator=", "}%
ACC.ACL, ACC.Bunch, ACC.Private, CBB.NSF, CESR.Private, CHESS.FMB, CHESS.Maia, CHESS.XIMG, CLASSE.Inventory, CLASSE.Private.Communications, CLEO.PrivateCLEO.Private.AC, CLEO.Private.Administration, CLEO.Private.RunMan, CLEO.Private.SW, Computing.Blogs, Computing.Newsletter, Computing.Obsolete, Computing.Private, Cosmology.Private, ERL.Private, HEP.DBSWorkshop, HEP.SWIG, HumanResources.Private, ILC.Americas, ILC.CesrTAILC.CesrTA.Proposal, ILC.DampingRingsILC.DampingRings.AreaLeaders, ILC.DampingRings.CTA09, ILC.DampingRings.ILCDR06, ILC.DampingRings.ILCDR07_KEK, ILC.DampingRings.ILCDR08, ILC.DampingRings.S3TaskForce, ILC.PrivateILC.Private.CesrTA, ILC.WWS, REU.Private, SRF.PrivateSRF.Private.Documentation, SRF.Private.PCsrfcn1, Safety.HandbookSafety.Handbook.PrivateSafety.Handbook.Private.ExternalResources, Sandbox.TestWeb, Sandbox.Testauth, Theory.Private, Trash.Communications, Trash.Documents, Trash.Phase2MREFC, WebDev.Private
Subwebs of "Sandbox"
%FLEXWEBLIST{subwebs="Sandbox" separator=", "}%
Sandbox.TestWeb, Sandbox.Testauth
Using include and exclude
Exclude TestCases and Trash webs
%FLEXWEBLIST{exclude="(TestCases|Trash).*" subwebs="none" separator=", "}%
ACC, BusinessOffice, CBB, CBETA, CESR, CHESS, CHEXS, CLASSE, CLEO, CMSPhase2MREFC, Computing, Cosmology, DarkPhoton, ERL, EngineeringDesignDrafting, G2, HEP, HLLHCCMSMREFC, HMF, HumanResources, ILC, MacCHESS, Main, People, PhotocathodeBrightBeams, REU, SRF, Safety, Sandbox, System, Theory, WebDev, XLEAP
Include Sandbox web and all of its subwebs
%FLEXWEBLIST{include="Sandbox(/\w+)?" separator=", "}%
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>"
}%