Difference: TWikiVariables (32 vs. 33)

Revision 3329 Aug 2001 - Main.MikeMannix

Line: 1 to 1
 

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 website uses only proprietary and third party technical cookies to ensure the correct operation of its web pages and to improve its services.
By continuing to navigate the website you consent to the use of cookies. To learn more, or deny your consent, consult the privacy policy
Copyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.