How to use variables with CMS components
Simplify Your HTML with Variables
Variables can be used with CMS components to reduce duplication and easy maintenance
Below is an example of using variables in an ActiveHTML component.
Types of Variables:-
1.Site Config XPath Variable
This variable uses xpath statement to fetch values from the site configuration xml.
Below is an example of site configuration XML that should be used for site scope.
2.Page Config XPath Expression
This variable uses xpath statement to fetch values from the page configuration XML.
It looks and behaves similar to 'Site Config XPath Variable' except that the XML configuration has a page scope.
This variable uses SQL statement to fetch data from the database.
Below is an example of fetching the company name from the database.