tcdl:facet
The <tcdl:facet> tag defines a Promotion that displays items depending on the location of the user in the Web site.
Syntax
<tcdl:region id="Sidebar" type="SmartTarget">
<tcdl:query publication='tcm:0-1-1'>
<tcdl:facet category='tcm:1-3-4_tcm:1-55-4' />
<tcdl:promotions region='Sidebar' maxItems='5'>
<tcdl:itemTemplate>
<tcdl:promotionalItems>
<tcdl:itemTemplate>
<tcdl:ComponentPresentation ComponentURI='##componentUri##' TemplateURI='##templateUri##' Type='Dynamic'/>
</tcdl:itemTemplate>
</tcdl:promotionalItems>
</tcdl:itemTemplate>
<tcdl:fallbackContent>...
</tcdl:fallbackContent>
</tcdl:promotions>
</tcdl:query>
</tcdl:region>
You can define one or more <tcdl:facet> tags in which case they are handled as OR operatives.
Attributes
The <tcdl:facet> tag has the following attributes:
| Attribute | Description | Value |
|---|---|---|
category | The location of the user in the Web site based on the Structure Group in which the Page appears for Web sites that use Structure Groups to define Web site navigation. | A hierarchy of Structure Group TCM URIs, separated by underscores |
id | (Optional) A string identifier for the Server Control or custom tag generated (for server-side programming). |