Document Tree
Document Properties
Kbid
2475L1
Last Modified
04-Feb-2020
Added to KB
20-Jun-2013
Public Access
Everyone
Status
Online
Doc Type
References
Product
  • ICM 7.10
  • ICM 11
  • ICM 12
Reference - ISML Template Variables

Introduction

Template variables are placeholders for dynamic content used in ISML Expressions. They are used to refer to data stored in the pipeline dictionary and to be displayed on the page generated from the template. The pipeline dictionary stores these data objects as keyvalue pairs. Via the key, template variables identify a data object in the pipeline dictionary.

Notation of Template Variables

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#">

More Complex Template Variables

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#">

Loop Variables

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.

Reference - ISML Reference

Disclaimer
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.
The Intershop Knowledge Portal uses only technically necessary cookies. We do not track visitors or have visitors tracked by 3rd parties. Please find further information on privacy in the Intershop Privacy Policy and Legal Notice.
Home
Knowledge Base
Product Releases
Log on to continue
This Knowledge Base document is reserved for registered customers.
Log on with your Intershop Entra ID to continue.
Write an email to supportadmin@intershop.de if you experience login issues,
or if you want to register as customer.