diff options
author | John Talintyre <john.talintyre@drkw.com> | 2001-09-13 07:49:26 +0000 |
---|---|---|
committer | John Talintyre <john.talintyre@drkw.com> | 2001-09-13 07:49:26 +0000 |
commit | 27d1dc762fce8b8ac5a7ee61035164f87ec02f3b (patch) | |
tree | d2fdfa4c745153857fbd64bb6ef2a37e44019691 | |
parent | cf209a4b899c897f2fa201abe9ae9da9d98f9ba9 (diff) |
none
-rw-r--r-- | TWiki/TWikiVariables.mdwn | 35 |
1 files changed, 33 insertions, 2 deletions
diff --git a/TWiki/TWikiVariables.mdwn b/TWiki/TWikiVariables.mdwn index 176434f9..08732b23 100644 --- a/TWiki/TWikiVariables.mdwn +++ b/TWiki/TWikiVariables.mdwn @@ -196,8 +196,9 @@ With a couple of notable exceptions, predefined variables return set values that <td><code>"selected"</code></td> </tr> <tr> - <td><code>selection</code></td> - <td> Current value e.g. current for current Web, =section="%<nop>WEB%" </nop></td> + <td><code>selection="%<nop>WEB%"</nop></code></td> + <td> Current value to be selected in list </td> + <td><code>section="%<nop>WEB%"</nop></code></td> </tr> </table> Examples: <br /><code>%<nop>WEBLIST{" * [<nop>[$name.%HOMETOPIC%]]"}%</nop></nop></code> creates a bullet list of all webs. <br /><code>%<nop>WEBLIST{"<select><option $marker="$marker" value="$qname">$name</option>" webs="Trash,public" selection="%WEB%" separator=" "}%</select></nop></code> Dropdown of all public Webs + Trash Web, current Web highlighted. </td> </tr> @@ -415,6 +416,36 @@ With a couple of notable exceptions, predefined variables return set values that </table> Example: <code><b>%<nop>SEARCH{"wiki" web="%MAINWEB%" scope="topic"}%</nop></b></code></td> </tr> <tr> + <td><code>%<nop>METASEARCH{...}%</nop></code></td> + <td> Special search of meta data <table border="1" cellpadding="1" cellspacing="0"> + <tr> + <th bgcolor="#99CCCC"><strong>Parameter:</strong></th> + <th bgcolor="#99CCCC"><strong>Description:</strong></th> + <th bgcolor="#99CCCC"><strong>Default:</strong></th> + </tr> + <tr> + <td><code>type="topicmoved"</code></td> + <td> What sort of search is required? <br /><code>"topicmoved"</code> if search for a topic that may have been moved <br /><code>"parent"</code> if searcing for topics that have a specific parent i.e. its children </td> + <td> required </td> + </tr> + <tr> + <td><code>web="%<nop>WEB%"</nop></code></td> + <td> Wiki web to search: A web, a list of webs separated by whitespace, or <code>all</code> webs. </td> + <td> required </td> + </tr> + <tr> + <td><code>topic="%<nop>TOPIC%"</nop></code></td> + <td> The topic the search relates to </td> + <td> required </td> + </tr> + <tr> + <td><code>title="Title"</code></td> + <td> Text the is pre-pended to any search results </td> + <td> required </td> + </tr> + </table> Example: <code><b>%<nop>METASEARCH{type="topicmoved" web="%<nop>WEB%" topic="%<nop>TOPIC%" title="This topic used to exist and was moved to: "}%</nop></nop></nop></b></code>, you may want to use this in <span style="background:"><font color="">Web Topic View Template</font></span><a href="http://LOCATION/WebTopicViewTemplate">?</a> and <span style="background:"><font color="">Web Topic Non Wiki Template</font></span><a href="http://LOCATION/WebTopicNonWikiTemplate">?</a><br /><code><b>%<nop>METASEARCH{type="parent" web="%<nop>WEB%" topic="%<nop>TOPIC%" title="Children: "}%</nop></nop></nop></b></code></td> + </tr> + <tr> <td><code>%<nop>VAR{"NAME" web="Web"}%</nop></code></td> <td> Get a preference value from a web other then the current one. Example: To get <code>%<nop>WEBBGCOLOR%</nop></code> of the %MAINWEB% web write <code>%<nop>VAR{"WEBBGCOLOR" web="%MAINWEB%"}%</nop></code>, is <code><b>%VAR{"WEBBGCOLOR" web="%MAINWEB%"}%</b></code></td> </tr></font></font></table> |