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.

Use

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

Tag where usedDescription 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.

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