NOSEARCHALL = on
preference variable. The "format"
defines the format of one web item. The $name
variable gets expanded to the name of the web, $qname
gets expanded to double quoted name, $marker
to marker
where web matches selection
.
%WEBLIST{"format" ...}%
Parameter: | Description: | Default: | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
"format" | Format of one line, may include following items. In addtion, the standard special tokens are handled accordingly.
$nop() , one of FormatTokens. e.g. $name$nop()a | "$name" | ||||||||||||||
format="format" | (Alternative to above) | "$name" | ||||||||||||||
separator=", " | Line separator | "$n" (new line) | ||||||||||||||
web="" | if you specify $web in format, it will be replaced with this | "" | ||||||||||||||
webs="public" | Comma separated list of webs. There are special webs:
NOTE 2: If MetadataRepository is used and webs are required to be registered, then cancopyto , canmoveto , and webtemplate behave differently.
| "public" | ||||||||||||||
marker="selected" | Text for $marker if the item matches selection | "selected" | ||||||||||||||
selection="%WEB%" | Current value to be selected in list | selection="%WEB%" | ||||||||||||||
subwebs="Sandbox" | Show webs that are a sub-web of this one (recursivly) | "" | ||||||||||||||
depth="1" | Specify the maximum depth of recursive search. E.g. %WEBLIST{depth="1"}% shows only top level webs. %WEBLIST{subwebs="Foo" depth="1"}% shows the direct subwebs of Foo. | (no maximum depth) | ||||||||||||||
limit="30" | Limit number of webs to show | "" (all) | ||||||||||||||
overlimit="..." | Message shown if over limit, such as: overlimit=" * [[%SYSTEMWEB%.SiteMap][More...]]" | "" |
%WEBLIST{"$listindent * [[$name.WebHome]]"}%
- creates a indented bullet list of all webs.
<form><select name="web"> %WEBLIST{"<option $marker value=$qname>$name</option>" webs="Trash, public" selection="%WEB%" separator=" "}% </select></form>
- creates a dropdown of all public webs + Trash web, with the current web highlighted.
Copyright © 1999-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Daya Bay? Send feedback Note: Please contribute updates to this topic on TWiki.org at TWiki:TWiki.VarWEBLIST. |