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=", "}%
ACTEnvLawHbk, ACTLawHbk, AULawTeachingResources, ApplicationsApplications.BlogApp, Applications.ClassificationApp, ArchiveArchive.ACTLawHbk, AustLII, BooksBooks.AnimalLawCaseBook, Books.CapacityAndTheLaw, COVID19COVID19.Bibliography, ChrisWebChrisWeb.ChrisClassificationWeb, ChrisWeb.ChrisSubWebChrisWeb.ChrisSubWeb.StagingWeb, ChrisWeb.ConstitutionalCritique, ChrisWeb.MarkupTestWeb, ChrisWeb.MySubWeb, ChrisWeb.NZLIIChrisWeb.NZLII.WillsIntestactAndPowersOfAttorney, ChrisWeb.TagMeWeb, ChrisWeb.TestNZ, ChrisWeb.TocPluginTest, ChrisWeb.WATest, ChrisWeb.WordToFoswiki, CyberLawCyberLaw.AustralianCyberLawMap, DataLexDataLex.Codespace, DataLex.DTS4A2J, DataLex.PLTX2040, DataLex.QUTLWN713, DataLex.StudentProjects, MainMain.Main, NTLawHbk, NZACCLawHbk, NZJPTrafficCourtGuide, NZLawSG, SandboxSandbox.AUFederalSentencing, Sandbox.AustLIIPapers, Sandbox.ConstitutionalCritique, Sandbox.CyLaw, Sandbox.MedicoLegalBorders, Sandbox.NZLIIUserGuide, Sandbox.OldCC, Sandbox.RIArbToolkit, Sandbox.RocketBoards, Sandbox.TheftAndFraudLaw, System, TasLawHbk, Trash.AustLIIPapersOLD, Trash.VicDiscrimLRes2, UTSCapstone2019, VicDiscrimLRes, WALawHbk, WARTenancyLP
Influencing order
%FLEXWEBLIST{webs="%USERSWEB%,public,%SYSTEMWEB%" separator=", "}%
MainMain.Main, ACTEnvLawHbk, ACTLawHbk, AULawTeachingResources, ApplicationsApplications.BlogApp, Applications.ClassificationApp, ArchiveArchive.ACTLawHbk, AustLII, BooksBooks.AnimalLawCaseBook, Books.CapacityAndTheLaw, COVID19COVID19.Bibliography, ChrisWebChrisWeb.ChrisClassificationWeb, ChrisWeb.ChrisSubWebChrisWeb.ChrisSubWeb.StagingWeb, ChrisWeb.ConstitutionalCritique, ChrisWeb.MarkupTestWeb, ChrisWeb.MySubWeb, ChrisWeb.NZLIIChrisWeb.NZLII.WillsIntestactAndPowersOfAttorney, ChrisWeb.TagMeWeb, ChrisWeb.TestNZ, ChrisWeb.TocPluginTest, ChrisWeb.WATest, ChrisWeb.WordToFoswiki, CyberLawCyberLaw.AustralianCyberLawMap, DataLexDataLex.Codespace, DataLex.DTS4A2J, DataLex.PLTX2040, DataLex.QUTLWN713, DataLex.StudentProjects, NTLawHbk, NZACCLawHbk, NZJPTrafficCourtGuide, NZLawSG, SandboxSandbox.AUFederalSentencing, Sandbox.AustLIIPapers, Sandbox.ConstitutionalCritique, Sandbox.CyLaw, Sandbox.MedicoLegalBorders, Sandbox.NZLIIUserGuide, Sandbox.OldCC, Sandbox.RIArbToolkit, Sandbox.RocketBoards, Sandbox.TheftAndFraudLaw, System, TasLawHbk, Trash.AustLIIPapersOLD, Trash.VicDiscrimLRes2, UTSCapstone2019, VicDiscrimLRes, WALawHbk, WARTenancyLP
Controlling subwebs
No subwebs
%FLEXWEBLIST{subwebs="none" separator=", "}%
ACTEnvLawHbk, ACTLawHbk, AULawTeachingResources, Applications, Archive, AustLII, Books, COVID19, ChrisWeb, CyberLaw, DataLex, Main, NTLawHbk, NZACCLawHbk, NZJPTrafficCourtGuide, NZLawSG, Sandbox, System, TasLawHbk, UTSCapstone2019, VicDiscrimLRes, WALawHbk, WARTenancyLP
Only subwebs
%FLEXWEBLIST{subwebs="only" separator=", "}%
Applications.BlogApp, Applications.ClassificationApp, Archive.ACTLawHbk, Books.AnimalLawCaseBook, Books.CapacityAndTheLaw, COVID19.Bibliography, ChrisWeb.ChrisClassificationWeb, ChrisWeb.ChrisSubWebChrisWeb.ChrisSubWeb.StagingWeb, ChrisWeb.ConstitutionalCritique, ChrisWeb.MarkupTestWeb, ChrisWeb.MySubWeb, ChrisWeb.NZLIIChrisWeb.NZLII.WillsIntestactAndPowersOfAttorney, ChrisWeb.TagMeWeb, ChrisWeb.TestNZ, ChrisWeb.TocPluginTest, ChrisWeb.WATest, ChrisWeb.WordToFoswiki, CyberLaw.AustralianCyberLawMap, DataLex.Codespace, DataLex.DTS4A2J, DataLex.PLTX2040, DataLex.QUTLWN713, DataLex.StudentProjects, Main.Main, Sandbox.AUFederalSentencing, Sandbox.AustLIIPapers, Sandbox.ConstitutionalCritique, Sandbox.CyLaw, Sandbox.MedicoLegalBorders, Sandbox.NZLIIUserGuide, Sandbox.OldCC, Sandbox.RIArbToolkit, Sandbox.RocketBoards, Sandbox.TheftAndFraudLaw, Trash.AustLIIPapersOLD, Trash.VicDiscrimLRes2
Subwebs of "Sandbox"
%FLEXWEBLIST{subwebs="Sandbox" separator=", "}%
Using include and exclude
Exclude TestCases and Trash webs
%FLEXWEBLIST{exclude="(TestCases|Trash).*" subwebs="none" separator=", "}%
ACTEnvLawHbk, ACTLawHbk, AULawTeachingResources, Applications, Archive, AustLII, Books, COVID19, ChrisWeb, CyberLaw, DataLex, Main, NTLawHbk, NZACCLawHbk, NZJPTrafficCourtGuide, NZLawSG, Sandbox, System, TasLawHbk, UTSCapstone2019, VicDiscrimLRes, WALawHbk, WARTenancyLP
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>"
}%