Documentation Center

tcdl:itemTemplate

The <tcdl:itemTemplate> tag handles one item in a list of items returned by OpenSearch when a OpenSearch query is executed.

Parent element

You can use the<tcdl:itemTemplate> tag under any parent element where you need to loop over an item collection, specifically:

Parent elementDescription of use
<tcdl:promotions>Handles one item in a list of promotions.
<tcdl:promotionalItems>Handles one item in a list of promotional items.
<tcdl:items>Handles one item in a list of content items returned by a search query.

Child elements

If the parent element is <tcdl:promotions>, <tcdl:itemTemplate> can have a <tcdl:promotionalItems> child element.

Default variable names

By default, the following variable names are used for collections and items in the collections:
TagCollection variable nameItem variable name
<tcdl:promotions>promotionspromotion
<tcdl:promotionalItems>promotionalItemspromotionalItem
<tcdl:items>itemsitem