Tags

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=", "}%
ACCACC/ACL, ACC/Bunch, ACC/Private, BusinessOffice, CBBCBB/NSF, CBETA, CESRCESR/Private, CHESSCHESS/FMB, CHESS/Maia, CHESS/XIMG, CHEXS, CLASSECLASSE/PrivateCLASSE/Private/Communications, CLEO, CLEO/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, 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, SRF, SRF/Private/PCsrfcn1, SafetySafety/HandbookSafety/Handbook/PrivateSafety/Handbook/Private/ExternalResources, SandboxSandbox/TestWeb, Sandbox/Testauth, System, Theory, Trash/Communications, Trash/Documents, Trash/Phase2MREFC, WebDevWebDev/Private

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/PrivateCLASSE/Private/Communications, CLEO, CLEO/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, 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, SRF, SRF/Private/PCsrfcn1, SafetySafety/HandbookSafety/Handbook/PrivateSafety/Handbook/Private/ExternalResources, SandboxSandbox/TestWeb, Sandbox/Testauth, System, Theory, Trash/Communications, Trash/Documents, Trash/Phase2MREFC, WebDevWebDev/Private

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, ILC, MacCHESS, Main, People, PhotocathodeBrightBeams, REU, SRF, Safety, Sandbox, System, Theory, WebDev

Only subwebs

%FLEXWEBLIST{subwebs="only" separator=", "}%
ACC/ACL, ACC/Bunch, ACC/Private, CBB/NSF, CESR/Private, CHESS/FMB, CHESS/Maia, CHESS/XIMG, CLASSE/PrivateCLASSE/Private/Communications, CLEO/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, 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/Private/PCsrfcn1, Safety/HandbookSafety/Handbook/PrivateSafety/Handbook/Private/ExternalResources, Sandbox/TestWeb, Sandbox/Testauth, 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, ILC, MacCHESS, Main, People, PhotocathodeBrightBeams, REU, SRF, Safety, Sandbox, System, Theory, WebDev

Include Sandbox web and all of its subwebs

%FLEXWEBLIST{include="Sandbox(/\w+)?" separator=", "}%
SandboxSandbox/TestWeb, Sandbox/Testauth

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

ACC
CBB Center for Bright Beams
NSF
CBETA Cornell-Brookhaven ERL Test Accelerator
FMB
Maia Documentation for the CHESS Maia detector, including GeoPixe, etc.
ERL
G2
HEP High Energy Physics
DBSWorkshop High Energy Physics
SWIG High Energy Physics
ILC
MacCHESS MacCHESS
Main Welcome to CLASSE Wiki ... meet people on this site
PhotocathodeBrightBeams photocathode development & high brightness electron beams laboratory wiki
REU
SRF
Sandbox Sandbox test area to experiment in an unrestricted hands-on web.
System Discover the details, and how to start your own site with Foswiki - The Free and Open Source Wiki.
Documents Safety Documents

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%"
}%
  • ACC
    • ACC/ACL
    • ACC/Bunch
    • ACC/Private
  • BusinessOffice
  • CBB
    • CBB/NSF
  • CBETA
  • CESR
    • CESR/Private
  • CHESS
    • CHESS/FMB
    • CHESS/Maia
    • CHESS/XIMG
  • CHEXS
  • CLASSE
    • CLASSE/Private
      • CLASSE/Private/Communications
  • CLEO
      • CLEO/Private/AC
      • CLEO/Private/Administration
      • CLEO/Private/RunMan
      • CLEO/Private/SW
  • CMSPhase2MREFC
  • Computing
    • Computing/Blogs
    • Computing/Newsletter
    • Computing/Obsolete
    • Computing/Private
  • Cosmology
    • Cosmology/Private
  • DarkPhoton
  • ERL
    • ERL/Private
  • EngineeringDesignDrafting
  • G2
  • HEP
    • HEP/DBSWorkshop
    • HEP/SWIG
  • ILC
    • ILC/Americas
    • ILC/CesrTA
      • ILC/CesrTA/Proposal
    • ILC/DampingRings
      • ILC/DampingRings/AreaLeaders
      • ILC/DampingRings/CTA09
      • ILC/DampingRings/ILCDR06
      • ILC/DampingRings/ILCDR07_KEK
      • ILC/DampingRings/ILCDR08
      • ILC/DampingRings/S3TaskForce
    • ILC/Private
      • ILC/Private/CesrTA
    • ILC/WWS
  • MacCHESS
  • Main
  • People
  • PhotocathodeBrightBeams
  • REU
    • REU/Private
  • SRF
      • SRF/Private/PCsrfcn1
  • Safety
    • Safety/Handbook
      • Safety/Handbook/Private
        • Safety/Handbook/Private/ExternalResources
  • Sandbox
    • Sandbox/TestWeb
    • Sandbox/Testauth
  • System
  • Theory
  • WebDev
    • WebDev/Private

Using markerformat

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

Topic revision: r1 - 28 May 2018, ProjectContributor
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 CLASSE Wiki? Send feedback