~kosova/+junk/tuxfamily-twiki

« back to all changes in this revision

Viewing changes to foswiki/data/System/VarTOPICLIST.txt

  • Committer: James Michael DuPont
  • Date: 2009-07-18 19:58:49 UTC
  • Revision ID: jamesmikedupont@gmail.com-20090718195849-vgbmaht2ys791uo2
added foswiki

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
%META:TOPICINFO{author="ProjectContributor" date="1231502400" format="1.1" version="1"}%
 
2
%META:TOPICPARENT{name="Macros"}%
 
3
#VarTOPICLIST
 
4
---+++ TOPICLIST{"format"} -- topic index of a web
 
5
   * List of all topics in a web. The "format" defines the format of one topic item. It may include formatting tokens: The =$topic= token gets expanded to the topic name, =$marker= to =marker= parameter where topic matches =selection=, and =$web= to the name of the web, or any of the standard FormatTokens.
 
6
   * Syntax: =%<nop>TOPICLIST{"format" ...}%=
 
7
   * Supported parameters:
 
8
     | *Parameter:* | *Description:* | *Default:* |
 
9
     | ="format"= | Format of one line, may include =$web= (name of web), =$topic= (name of the topic), =$marker= (which expands to =marker= for the item matching =selection= only) | ="$topic"= |
 
10
     | =format="format"= | (Alternative to above) | ="$topic"= |
 
11
     | =separator=", "= | line separator | ="$n"= (new line) |
 
12
     | =marker="selected"= | Text for =$marker= if the item matches =selection= | ="selected"= |
 
13
     | =selection="TopicA, !TopicB"= | Current value to be selected in list | =(none)= |
 
14
     | =web="Name"= | Name of web | Current web |
 
15
   * Example: =%<nop>TOPICLIST{"   * $web.$topic"}%= creates a bullet list of all topics
 
16
   * Example: =%<nop>TOPICLIST{separator=", "}%= creates a comma separated list of all topics
 
17
   * Example: =%<nop>TOPICLIST{" &lt;option&gt;$topic&lt;/option&gt;"}%= creates an option list (for drop down menus)
 
18
   * Example: =&lt;select&gt;%<nop>TOPICLIST{" &lt;option $marker value='$topic'&gt;$topic&lt;/option&gt;" separator=" " selection="%<nop>TOPIC%"}%&lt;/select&gt;= creates an option list of web topics with the current topic selected
 
19
   * Related: [[%IF{"'%INCLUDINGTOPIC%'='Macros'" then="#"}%VarSEARCH][SEARCH]], [[%IF{"'%INCLUDINGTOPIC%'='Macros'" then="#"}%VarWEBLIST][WEBLIST]]
 
20