Documentation Center

tcdl:itemTemplate

The <tcdl:itemTemplate> tag handles one item in a list of items returned by Fredhopper when a Fredhopper 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:navigation>Handles one item in a list of navigation sections.
<tcdl:navigationSection>Handles one item in a list of navigation links.
<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:navigation>sectionssection
<tcdl:navigationSection>linkslink
<tcdl:promotions>promotionspromotion
<tcdl:promotionalItems>promotionalItemspromotionalItem
<tcdl:items>itemsitem