tcdl:query
The <tcdl:query> tag defines a query for retrieving content that is displayed in a Page Region.
Syntax
<tcdl:region id="Sidebar" type="SmartTarget">
<tcdl:query publication='tcm:0-1-1'>
<tcdl:facet category='tcm:1-3-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>
Attributes
The <tcdl:query> tag has the following attributes:
| Attribute | Description |
|---|---|
id | A unique String value identifying a query. |
publication | The Web site Publication TCM URI from which to retrieve content for promotions (used only with the tcdl:facet tag). |
allowDuplicates | Boolean to display content (promotional items) already displayed in preceding regions on this Page or not:
|
timeout | The length of time, expressed in milliseconds, to wait for the result of the query to be received before fallback content is displayed in a SmartTarget region. If specified, the setting overrides the default timeout in the smarttarget_conf.xml file. |
view | Not Supported—see known issues. |
redirect | Boolean to redirect certain search queries to specific pages. Set to |