CityDesk 2.0-Documentation
Using VariablesVariables can be used in articles or in templates to represent chunks of text you need to use more than once throughout your site. When CityDesk publishes a site it replaces all variables with the text each represents.
To create a new variable:
Make sure you are in Designer Mode.
In the main window, select View » Variables or click on the Variables tool on the toolbar.
Variables
Click Add.
Provide a name and initial value for the variable, and click OK.
The name can be any combination of letters, numbers, and underscore (_), but may not begin with a number. The value can be HTML text, including blank, up to a maximum of 64K in length.
Click Done.
To edit variables:
You'll see a list of each variable’s name and the HTML text it represents.
In the main window, select View » Variables or click on the Variables tool on the toolbar.
Double click on a variable to edit it. Click OK when you are finished.
Note that if you are not in Designer Mode, you won't be able to change the name of the variable, only its value.
Click Done.
To delete a variable:
Make sure you are in Designer Mode.
In the main window, select View » Variables or click on the Variables tool on the toolbar.
Select the variable and click Delete.
To use the variable name:
Surround it with {$. (note the dot) and $} (no dot), for example:
{$.SiteName$}
You can also select the variables from the Edit » Insert Variable menu or the Insert » Variable menu while you are editing an article or a template.
©Copyright 2001-2003 Fog Creek Software, Inc. All Rights Reserved.