tcdl:promotions
The <tcdl:promotions> tag defines a region on a Web page where Promotions are displayed. When a Fredhopper query is executed, Fredhopper returns a list of Promotions that match the query and a collection of content items for each Promotion.
Syntax
<tcdl:query id='query1' timeout='2000' publication='tcm:0-3-1' allowDuplicates='true'>
<tcdl:promotions region='Header' maxItems='10'>
<tcdl:itemTemplate>
#{promotion.slogan}
<tcdl:promotionalItems>
<tcdl:itemTemplate>
<tcdl:ComponentPresentation ComponentURI='#{item.componentUri}' TemplateURI='#{item.templateUri}' Type='Dynamic'/>
</tcdl:itemTemplate>
</tcdl:promotionalItems>
</tcdl:itemTemplate>
</tcdl:promotions>
</tcdl:query>
Attributes
The <tcdl:promotions> tag has the following attributes:
| Parameter | Description |
|---|---|
region | A unique identifier for the region where the Promotion is displayed. |
maxItems | The maximum number of items in the item collection. |
var | Set the name of the item collection (by default, set to promotions). |