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: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 website Publication TCM URI from which to retrieve content for promotions For example, if you are on a German website, you can set the attribute to the TCM URI of the relevant German website's Publication. The result will be that only the Promotions that specify this Publication get returned and all of the returned items will be the localized German versions. |
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 an Experience Optimization region. If specified, the setting overrides the default timeout in the smarttarget_conf.xml file. |
view | The type of webpage the promotions apply to.
The |