Setting Static Global Variables


You can set static global variables with a unique value for individual publishing targets.

To set a static global variable in CMS 10.6:
  1. Navigate to Administration > System Options > Dynamic Site Server > Global Variables.
  2. Click Add new global variable.
    Version Notes: CMS 10.0–10.5
    In CMS 10.0–10.5, this button displays as a plus button Add New Global Variable (Plus) Button.

    Add New Global Variable Button

  3. Select Add global variable with static value from the drop-down list.
  4. Complete the following fields:
    FieldDescription
    Variable NameThe name you enter will display for users when they insert the variable into plain text and XHTML fields.
    Important
    Do not include spaces or special characters in this name.
    ValueThe value you enter will be the default value for the variable.
  5. Optional: Complete the following steps to add a value scoped to an individual publishing target:

    Scoped values can be used for different websites being produced from the same content or can be used to test new values for a staging vs. live site publish.

    1. Click Add new publishing target-specific value.
      Version Notes: CMS 10.0–10.5
      In CMS 10.0–10.5, this button displays as a plus button Add New Global Variable (Plus) Button.
    2. Select a Publishing Target from the drop-down list.
    3. Enter a value for the publishing target in the Value field.
      This will be the default value for the variable.

    Static global Variable

  6. Click SaveSave Button in the top-left corner of Global Variables Configuration to save your changes.
    Tip
    • You can delete the entire static variable, or you can delete values for particular publishing targets within the variable by clicking the corresponding Remove button.
    • You can retrieve Link Name from Link element, and Title from the Linkset element, but you need to enter these variable values, manually, rather than from the CMS UI.