If the data object is simple, e.g., a string, it can be identified directly through the key, e.g., #ProductID#
.
If the data object is complex, the key must be further specified by a colon-separated list of attributes. The simple example #Product:Name#
is shown below.
<ISPRINT value="#Product:Name#">
A slightly more complex example is shown below.
<isprint value="#Profile:AddressBook:DefaultAddress:City#">
More complex still is the possibility to pass arguments to a data object:
<isset name="AddressName" value="Address1"> <isprint value="#Profile:AddressBook:AddressByName(AddressName):City#">
A special kind of template variables are so-called loop variables. Loop variables refer to an iterator object in the pipeline dictionary or the current session. Loop variables can only be used within a loop defined via the <ISLOOP>tag, as shown below.
<isloop iterator="Hotdeals" alias="hds" preview="1"> <isprint value="#hds:name#"><br> </isloop>
Template variables use object path expressions. See Reference - Object Path Expressionsfor a detailed description.