Recent Posts

    Authors

    Published

    Tag Cloud

    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.

    Variables

     

    Types of  Variables:-

     

    1.Site Config XPath Variable

    This variable uses xpath statement to fetch values from the site configuration xml.

    SIte config xpath variable

     Below is an example of site configuration XML that should be used for site scope.Site Configuration XML

     


    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.

     
    3.SQL Variable

     This variable uses SQL statement to fetch data from the database.

     

    Below is an example of fetching the company name from the database.SQL variable

    4.Url Variable