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 used | 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. |
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 |