tcdl:items
The <tcdl:items> tag is a container element for handling content items returned by a search query.
Syntax
<tcdl:query publication='tcm:0-1-1'>
<tcdl:search type="parameter" value="q" />
<tcdl:items start="0" maxItems="10">
<tcdl:itemsHeader>
<h2 class="title">Search results</h2>
<div class="search-result-totalitems">##ItemsTotalCount## items found.</div>
</tcdl:itemsHeader>
<tcdl:itemTemplate>
<tcdl:ComponentPresentation Type="Dynamic" ComponentURI="##ComponentUri##" TemplateURI="##TemplateUri##" />
<p><hr /></p>
</tcdl:itemTemplate>
</tcdl:items>
</tcdl:query>
Attributes
The <tcdl:items> tag has the following attributes:
| Attributes | Description |
|---|---|
maxItems | The maximum number of content items returned. |
start | The item in the item collection that is displayed first (used when paging is implemented). Note that 0 is the first item in the index. |
var | Set the name of the item collection (by default, set to items). |
Setting up paging
To set up paging:
- Open the Business Manager.
- Go to .
- Set Maximum number of products per page.