Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
Deleted: | ||||||||
< < | Warning: Can't find topic TWiki.UtilTempDocNote | |||||||
TWiki Variables | ||||||||
Changed: | ||||||||
< < | Text strings expanded on the fly include predefined, preference-driven and custom-defined data | |||||||
> > | Text strings expanded on the fly to display data or system info | |||||||
Overview | ||||||||
Changed: | ||||||||
< < | TWikiVariables are text strings enclosed in percentage signs: % that represent stored data. When a topic is rendered for viewing, defined variables are replaced by their actual values. TWiki has two types of variable, predefined and Preference-based, where usually you determine the content. Through Preference variables, you can also define custom variables, creating new variable name and value. TWiki variables are as simple to use as they are powerful, and vice versa! | |||||||
> > | TWikiVariables are text strings - %VARIABLE% - that expand into content whenever a page is opened. Variables are replaced by their actual values: stored data, or system info (like the date, or the current user). There are predefined variables, and Preference variables that you set. You can also define custom variables, with new names and values. | |||||||
Predefined Variables | ||||||||
Changed: | ||||||||
< < | With a couple of notable exceptions, predefined variables return set values that are defined one-time on installation and left alone. Most are directory names and file paths, customized for your server, and only have to be updated once in the main configuration file if your server set-up changes. | |||||||
> > | With a couple of notable exceptions, predefined variables return set values that are defined on installation and left alone. Most are directory names and file paths, customized for your server, and only have to be updated once in the main configuration file if your server set-up changes. | |||||||
Changed: | ||||||||
< < | The Caboteria expands the following variables enclosed in % percent signs: | |||||||
> > | The Caboteria expands the following variables (enclosed in % percent signs): | |||||||
Changed: | ||||||||
< < | ||||||||
> > | ||||||||
| ||||||||
Line: 88 to 86 | ||||||||
| ||||||||
Added: | ||||||||
> > |
| |||||||
| ||||||||
Line: 238 to 239 | ||||||||
Additional variables are defined in the preferences ( site-level ( SL ) in TWikiPreferences, web-level ( WL ) in WebPreferences of each web, and user level ( UL ) preferences in individual user topics): | ||||||||
Changed: | ||||||||
< < | ||||||||
> > | ||||||||
| ||||||||
Line: 353 to 354 | ||||||||
| ||||||||
Changed: | ||||||||
< < | ||||||||
> > | ||||||||
Example: Create a custom logo variable
|