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.
The information provided in the Knowledge Base may not be applicable to all systems and situations. Intershop Communications will not be liable to any party for any direct or indirect damages resulting from the use of the Customer Support section of the Intershop Corporate Web site, including, without limitation, any lost profits, business interruption, loss of programs or other data on your information handling system.