SXML usage

Release 1.4 - ...

A range of new viper methods are introduced to work with the Cookie Policy system.

Example

In this example, a script is loaded only when the current user accepts functional cookies:

Smartsite SXML CopyCode image Copy Code
<se:if expression="user.policy.iscookiegroupallowed('FUNCTIONAL')">
   {placeholder.addjavascriptinclude("/scripts/my_cookie_using_enrichment.js")}
</se:if>