Documentation Center

tcdl:item

The <tcdl:item> tag defines a Promotion that displays content items depending on a single other Component Presentation displayed on the Page.

Syntax

<tcdl:query publication='tcm:0-1-1' allowDuplicates='false'> 
     <tcdl:item componentUri='tcm:1-63' templateUri='tcm:1-51-32' /> 

     <tcdl:promotions region='Sidebar' maxItems='1'> 
          <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> 

Attributes

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

AttributeDescription
componentUriThe TCM URI of a Component.
templateUriThe TCM URI of a Component Template.
id(Optional) A string identifier for the Server Control or custom tag generated (for server-side programming).