Reference library

Variable Schemes

Variable schemes allow you to deliver different content to pages depending on its asset class, branch of navigation or the domain requesting the page. These are explained in turn.    

1. Asset

In 10.4, if a section of your site requires a different layout to the rest of the site you can override the default global variables by creating an asset dependent variable scheme that is applied only to pages that are associated with a specific asset class. This is the preferred method for creating differential page content. The two other approaches below will at some point be deprecated. Asset based variables have the following two main advantages:

  • Sub-sites now render well in admin because it is now possible to apply an asset-dependent scheme in the edited page.
  • It's now possible to use the same variable scheme for different branches or sub-sites.

To create a new asset dependent global variable scheme:

  1. Click Variable Schemes on the Globals section of the Build tab.
  2. Name - type in the box a name for the new scheme and click Add.
  3. Click on the scheme name or Edit to edit the variable scheme..

In addition to the above the you then need go to the asset class screen and assign the newly created scheme to any asset class or classes. 

To delete an asset dependent global variable scheme:

  1. Click Variable Schemes on the Globals section of the Build tab.
  2. Select on the grid the scheme that you want to delete and click Delete.
  3. Click OK.

2. Branch (deprecation candidate)

Use asset dependency above in preference to branch for new schemes. 

If a section of your site requires a different layout to the rest of the site you can override the default global variables by creating a branch dependent variables scheme that is applied only to pages on the specified branch.

To create a new branch dependent global variable scheme:

  1. Click Variable Schemes on the Globals section of the Build tab.
  2. Click Add Variable Scheme.
  3. Name - type in the box a name for the new scheme.
  4. Type - select the variable scheme type.
  5. Branch - Select root page of the branch to which the scheme will apply from the page picker. Click Select Page to open the page picker

To edit a branch dependent global variable scheme:

  1. Click Variable Schemes on the Globals section of the Build tab.
  2. Select on the grid the scheme that you want to edit and click Edit.
  3. If you want to add or remove pages from the scheme select the new root page from the page picker and click Save.

To delete a branch dependent global variable scheme:

  1. Click Variable Schemes on the Globals section of the Build tab.
  2. Select on the grid the scheme that you want to delete and click Delete.
  3. Click OK.

 

3. Domain (deprecation candidate)

Use asset dependency above in preference to domain for new schemes. 

If a section of your site requires a different layout to the rest of the site you can override the default global variables by creating a domain dependent variable scheme that is applied only to pages that are associated with specific domains.

To create a new domain dependent global variable scheme:

  1. Click Variable Schemes on the Globals section of the Build tab.
  2. Click Add Variable Scheme.
  3. Name - type in the box a name for the new scheme.
  4. Type - select the variable scheme type.
  5. Domain - Select the domain(s) from the domain list.
  6. Click Save to create.

To edit a domain dependent global variables scheme:

  1. Click Schemes on the Globals section of the Build tab.
  2. Select on the grid the scheme that you want to edit and click Edit.
  3. If you want to add or remove domains from the scheme select/deselect the domains on the list and click Save.

To delete a domain dependent global variables scheme:

  1. Click Schemes on the Globals section of the Style tab.
  2. Select on the grid the scheme that you want to delete and click Delete.
  3. Click OK.

 

Related questions