summaryrefslogtreecommitdiff
path: root/TWiki/TWikiVariables.mdwn
diff options
context:
space:
mode:
Diffstat (limited to 'TWiki/TWikiVariables.mdwn')
-rw-r--r--TWiki/TWikiVariables.mdwn17
1 files changed, 16 insertions, 1 deletions
diff --git a/TWiki/TWikiVariables.mdwn b/TWiki/TWikiVariables.mdwn
index c60b3023..962e2173 100644
--- a/TWiki/TWikiVariables.mdwn
+++ b/TWiki/TWikiVariables.mdwn
@@ -162,6 +162,14 @@ TWiki expands the following variables enclosed in % percent signs:
</tr>
</table> Example: <code><b>%<nop>SEARCH{"wiki" web="Main" scope="topic"}%</nop></b></code></td>
</tr>
+ <tr>
+ <td><code>%<nop>VAR{"NAME" web="Web"}%</nop></code></td>
+ <td> Get a preference value from another web then the current one. Example: To get <code>%<nop>WEBBGCOLOR%</nop></code> of the Main web write <code>%<nop>VAR{"WEBBGCOLOR" web="Main"}%</nop></code>, is <code><b>%VAR{"WEBBGCOLOR" web="Main"}%</b></code></td>
+ <td>
+ <p>
+ </p>
+ </td>
+ </tr>
</table>
[1] **_Note_**: A web can be excluded from a `web="all"` search if you define a `NOSEARCHALL=on` variable in its [[WebPreferences]].
@@ -246,4 +254,11 @@ Additional variables are defined in the preferences ( site-level ( **_SL_** ) in
</tr>
</table>
--- [[Main/PeterThoeny]] - 18 Sep 2000 <br />
+**_Notes:_**
+
+* Preferences variables ( on site-level, web-level and user level ) are defined by bullet lines with this syntax:
+ * <code>Set VARIABLENAME = value</code>
+* Additional preferences variables can be defined on all three level as needed. Example:
+ * <code>Set MYLOGO = %PUBURLPATH%/%MAINWEB%/LogoTopic/logo.gif</code>
+
+-- [[Main/PeterThoeny]] - 01 Nov 2000 <br />