FlexWebListExamples

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.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, NZLawSG, SandboxSandbox.AUFederalSentencing, Sandbox.AustLIIPapers, Sandbox.ConstitutionalCritique, Sandbox.CyLaw, Sandbox.MedicoLegalBorders, Sandbox.NZJPTrafficCourtGuide, 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.TagMeWeb, ChrisWeb.TestNZ, ChrisWeb.TocPluginTest, ChrisWeb.WATest, ChrisWeb.WordToFoswiki, CyberLawCyberLaw.AustralianCyberLawMap, DataLexDataLex.Codespace, DataLex.DTS4A2J, DataLex.PLTX2040, DataLex.QUTLWN713, DataLex.StudentProjects, NTLawHbk, NZACCLawHbk, NZLawSG, SandboxSandbox.AUFederalSentencing, Sandbox.AustLIIPapers, Sandbox.ConstitutionalCritique, Sandbox.CyLaw, Sandbox.MedicoLegalBorders, Sandbox.NZJPTrafficCourtGuide, 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, 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.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.NZJPTrafficCourtGuide, 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, 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>" 
}%

Sitemap

AULawTeachingResources Australian Law Teaching Resources
Applications Applications Library
BlogApp Blogging application for Foswiki
ClassificationApp Categorization and folksomony application
AustLII AustLII Projects
Books Books
AnimalLawCaseBook Animal Law Case Book
CapacityAndTheLaw Capacity and the Law
ChrisWeb A new Web created by me!
Main Welcome to AustLII Communities ... meet people on this site
Main Welcome to AustLII Communities ... meet people on this site
Sandbox Sandbox test area to experiment in an unrestricted hands-on web.
ConstitutionalCritique Critical constitutional analysis by the CRU
CyLaw CyLaw
MedicoLegalBorders Medico-Legal Borders
RIArbToolkit Arbitrators' Toolkit
RocketBoards trying to get RocketBoards look and feel
System Discover the details, and how to start your own site with Foswiki - The Free and Open Source Wiki.

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%"
}%
  • ACTEnvLawHbk
  • ACTLawHbk
  • AULawTeachingResources
  • Applications
    • Applications.BlogApp
    • Applications.ClassificationApp
  • Archive
    • Archive.ACTLawHbk
  • AustLII
  • Books
    • Books.AnimalLawCaseBook
    • Books.CapacityAndTheLaw
  • COVID19
    • COVID19.Bibliography
  • ChrisWeb
    • ChrisWeb.ChrisClassificationWeb
    • ChrisWeb.ChrisSubWeb
      • ChrisWeb.ChrisSubWeb.StagingWeb
    • ChrisWeb.ConstitutionalCritique
    • ChrisWeb.MarkupTestWeb
    • ChrisWeb.MySubWeb
    • ChrisWeb.TagMeWeb
    • ChrisWeb.TestNZ
    • ChrisWeb.TocPluginTest
    • ChrisWeb.WATest
    • ChrisWeb.WordToFoswiki
  • CyberLaw
    • CyberLaw.AustralianCyberLawMap
  • DataLex
    • DataLex.Codespace
    • DataLex.DTS4A2J
    • DataLex.PLTX2040
    • DataLex.QUTLWN713
    • DataLex.StudentProjects
  • Main
    • Main.Main
  • NTLawHbk
  • NZACCLawHbk
  • NZLawSG
  • Sandbox
    • Sandbox.AUFederalSentencing
    • Sandbox.AustLIIPapers
    • Sandbox.ConstitutionalCritique
    • Sandbox.CyLaw
    • Sandbox.MedicoLegalBorders
    • Sandbox.NZJPTrafficCourtGuide
    • Sandbox.OldCC
    • Sandbox.RIArbToolkit
    • Sandbox.RocketBoards
    • Sandbox.TheftAndFraudLaw
  • System
  • TasLawHbk
  • UTSCapstone2019
  • VicDiscrimLRes
  • WALawHbk
  • WARTenancyLP

Using markerformat

%FLEXWEBLIST{
   exclude="(TestCases|Trash).*"
   format="$indent   * [[$web.%HOMETOPIC%][$name]]$n"
   markerformat="$indent   * 
     [[$web.%HOMETOPIC%][<span class=\"foswikiAlert\">$name</span>]]$n"
   selection="%BASEWEB%"
}%

This site is powered by FoswikiCopyright © by the contributing authors. All material on this site is the property of the contributing authors.
Ideas, requests, problems regarding AustLII Communities? Send feedback
This website is using cookies. More info. That's Fine