SmartTarget TCDL Tag Reference
This topic provides a list of the TCDL tags available for SmartTarget.
Syntax
The following example provides an overview of the SmartTarget tags you can use:
<tcdl:region>
<tcdl:query>
<tcdl:facet />
<tcdl:item />
<tcdl:search />
<tcdl:attribute />
<tcdl:promotions />
<tcdl:navigation />
<tcdl:items />
</tcdl:query>
</tcdl:region>
SmartTarget tags
SmartTarget provides the following TCDL tags:
<tcdl:region>-
The
<tcdl:region>tag is the root node which encapsulates a Page Region in which Promotions returned by Fredhopper are displayed. <tcdl:query>-
The
<tcdl:query>defines a query for retrieving content that is displayed in a Page Region. <tcdl:facet>-
Defines a facet Promotion that displays content items depending on the location of the end-user in the Web site. The
<tcdl:facet>tag specifies a branch in the Folder, Structure Group, or Categories & Keywords (taxonomy) hierarchy. <tcdl:item>- Defines an item Promotion that displays content items depending on a single other item (Component Presentation) displayed on the Page.
<tcdl:search>- Defines a search Promotion that displays content items depending on search terms entered by the user.
<tcdl:attribute>-
Defines a
nameandvaluepair that is added to the Fredhopper query to allow you to filter Promotions, items returned by a Promotion, or items returned by a query on attributes. <tcdl:items>-
Handles content items returned by a query.
<tcdl:promotions>- Identifies a region for displaying Promotion items returned by a Fredhopper query.
<tcdl:navigation>-
Displays navigation links to related items.
<tcdl:navigation>has the following child elements:<tcdl:navigationSection>defines a section in your Web page in which navigation links are displayed (see also<tcdl:itemTemplate>):<tcdl:navigationSectionHeader>defines a header section.<tcdl:navigationSectionFooter>defines a footer section.<tcdl:navigationLink>displays the navigation links (see also<tcdl:itemTemplate>)
<tcdl:itemTemplate>-
Handles a list of items:
- In the
<tcdl:navigation>tag, use<tcdl:itemTemplate>to handles one item in a list containing navigation sections. - In the
<tcdl:navigationSection>tag, use<tcdl:itemTemplate>to handles one item in a list of navigation links. - In the
<tcdl:promotionalItems>tag, use<tcdl:itemTemplate>to handles one item in a list of content items. - In the
<tcdl:items>tag, use<tcdl:itemTemplate>to handles one item in a list of items returned by a search query.
- In the