Difference: TWikiVariables (32 vs. 33)

Revision 3328 Aug 2001 - MikeMannix

Line: 1 to 1
 
On this page:

TWiki Variables

Added:
>
>

About Variables

Include/write if not found elsewhere.

 

Predefined Variables

TWiki expands the following variables enclosed in % percent signs:

Line: 317 to 321
 
List of preferences that are not allowed to be overridden by next level preferences
Changed:
<
<
Notes:
>
>

Setting and Creating New Preferences

 
Changed:
<
<
  • Preferences variables ( on site-level, web-level and user level ) are defined by bullet lines with this syntax:
    • Set VARIABLENAME = value
  • Additional preferences variables can be defined on all three level as needed. Example:
    • Set MYLOGO = %PUBURLPATH%/%MAINWEB%/LogoTopic/logo.gif
>
>
  • The syntax for Preferences variables is the same anywhere in TWiki. In Edit mode, from the start of a new line:
    [6 spaces] * [space] Set [space] VARIABLENAME [space] = [value]
    Example:
    • Set VARIABLENAME = value
  • You can add your own preference variables for an entire site, a single web, or a single topic, using the standard syntax. Whatever you include in your variable will be expanded on display, and treated exactly as if it had been written out. So you can place formatted text, page links, images.
    Example: To place a logo anywhere in a web by typing %MYLOGO%, define the variable in the web's WebPreferences topic, like this (in this case, you also have to upload logo.gif to the same directory):
    • Set MYLOGO = %PUBURLPATH%/%MAINWEB%/LogoTopic/logo.gif
 
Deleted:
<
<
-- PeterThoeny - 23 Jul 2001
 -- MikeMannix? - 26 Aug 2001
 
This site is powered by the TWiki collaboration platformCopyright � by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback
Note: Please contribute updates to this topic on TWiki.org at TWiki:TWiki.TWikiVariables