Log inRegister

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=", "}%
ARH, BOBWiki, DataC, DocM, Main, Mithrandir, NetPanda, Nisweb09AppAdminDocHu, Nisweb09NetworkAdminDocHu, Nisweb10AppAdminDocHu, Nisweb10NetworkAdminDocHu, ProdC, PueblaUtalvanyRendeles, RTIR, Sandbox, System, TWiki, Trash.Arculat, UtalvanyKK, UtalvanyKezelo

Influencing order

%FLEXWEBLIST{webs="%USERSWEB%,public,%SYSTEMWEB%" separator=", "}%
Main, ARH, BOBWiki, DataC, DocM, Mithrandir, NetPanda, Nisweb09AppAdminDocHu, Nisweb09NetworkAdminDocHu, Nisweb10AppAdminDocHu, Nisweb10NetworkAdminDocHu, ProdC, PueblaUtalvanyRendeles, RTIR, Sandbox, System, TWiki, Trash.Arculat, UtalvanyKK, UtalvanyKezelo

Controlling subwebs

No subwebs

%FLEXWEBLIST{subwebs="none" separator=", "}%
ARH, BOBWiki, DataC, DocM, Main, Mithrandir, NetPanda, Nisweb09AppAdminDocHu, Nisweb09NetworkAdminDocHu, Nisweb10AppAdminDocHu, Nisweb10NetworkAdminDocHu, ProdC, PueblaUtalvanyRendeles, RTIR, Sandbox, System, TWiki, UtalvanyKK, UtalvanyKezelo

Only subwebs

%FLEXWEBLIST{subwebs="only" separator=", "}%
Trash.Arculat

Subwebs of "Sandbox"

%FLEXWEBLIST{subwebs="Sandbox" separator=", "}%

Using include and exclude

Exclude TestCases and Trash webs

%FLEXWEBLIST{exclude="(TestCases|Trash).*" subwebs="none" separator=", "}%
ARH, BOBWiki, DataC, DocM, Main, Mithrandir, NetPanda, Nisweb09AppAdminDocHu, Nisweb09NetworkAdminDocHu, Nisweb10AppAdminDocHu, Nisweb10NetworkAdminDocHu, ProdC, PueblaUtalvanyRendeles, RTIR, Sandbox, System, TWiki, UtalvanyKK, UtalvanyKezelo

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

ARH
DataC Adatgyűjtő és megjelenítő
DocM Dokumentum menedzsment
Main Welcome to Foswiki … meet people on this site
NetPanda Termékgyűjtő, Beszerzési portál és Webshop
Nisweb09AppAdminDocHu Nisweb eszköz-adminisztrációs beállításai
Nisweb09NetworkAdminDocHu A Nisweb program adminisztrációs felületi és hálózati beállításai
Nisweb10AppAdminDocHu Nisweb (v10) eszköz-adminisztrációs beállításai
Nisweb10NetworkAdminDocHu A Nisweb (v10) program adminisztrációs felületi és hálózati beállításai
PueblaUtalvanyRendeles Puebla Utalvány-rendelés
RTIR RT for Incident Response
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.
Arculat Arculat (ZESZ)
UtalvanyKK Utalványkezelő Központ
UtalvanyKezelo Az utalvany-kezelo.hu nyilvános wikije

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%"
}%
  • ARH
  • BOBWiki
  • DataC
  • DocM
  • Main
  • Mithrandir
  • NetPanda
  • Nisweb09AppAdminDocHu
  • Nisweb09NetworkAdminDocHu
  • Nisweb10AppAdminDocHu
  • Nisweb10NetworkAdminDocHu
  • ProdC
  • PueblaUtalvanyRendeles
  • RTIR
  • Sandbox
  • System
  • TWiki
  • UtalvanyKK
  • UtalvanyKezelo

Using markerformat

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