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 element | Description 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:
| Tag | Collection variable name | Item variable name |
|---|---|---|
<tcdl:promotions> | promotions | promotion |
<tcdl:promotionalItems> | promotionalItems | promotionalItem |
<tcdl:items> | items | item |