Documentation Center

tcdl:items (deprecated)

The <tcdl:items> tag is a container element for handling content items returned by a search query, as returned by the now deprecated <tcdl:search> element. Search functionality within Experience Optimization is deprecated as of the Tridion Sites 9 release.

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>

Parent element

<tcdl:query>

Child elements

  • <tcdl:itemsHeader>
  • <tcdl:itemTemplate>

Attributes

The <tcdl:items> tag has the following attributes:

AttributesDescription
maxItemsThe maximum number of content items returned.
startThe item in the item collection that is displayed first (used when paging is implemented). Note that 0 is the first item in the index.
varSet the name of the item collection (by default, set to items).