Documentation Center

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:

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).

Setting up paging

To set up paging:

  1. Open the Business Manager.
  2. Go to System Manager > Presentation > Lister page.
  3. Set Maximum number of products per page.