You can define a section within a template by inserting a <ContentItem> or <ContentItemList> element within a <Property>.

A content item property defines a template section by creating a placeholder for a nested content item defined by a cartridge template.

Content administrators can configure a section in Experience Manager by choosing a cartridge to insert in the section then configuring the properties of the cartridge.

To add a content item property to a template:

The following example defines two sections within a template. Note that more than one section in a template can have the same type, as long as your client application expects this kind of content.

A content item list allows content administrators to add an arbitrary number of items to a section and to reorder those items within the list using the Content Tree in Experience Manager.

Using content item properties to define the subsections of a cartridge restricts the number of subsections available to the content administrator in Experience Manager. For example, the right column of this page template can contain exactly four cartridges:

<ContentTemplate xmlns="http://endeca.com/schema/content-template/2008"
                 xmlns:xavia="http://endeca.com/schema/xavia/2010"
                 xmlns:editors="editors"
                 type="PageTemplate">
  <!-- additional elements deleted from this example -->
  <ContentItem>
    <Name>New Three-Column Navigation Page</Name>
<!-- additional elements deleted from this example -->
    <Property name="rightColumn1">
      <ContentItem type="SidebarItem" />
    </Property>
    <Property name="rightColumn2">
      <ContentItem type="SidebarItem" />
    </Property>
    <Property name="rightColumn3">
      <ContentItem type="SidebarItem" />
    </Property>
    <Property name="rightColumn4">
      <ContentItem type="SidebarItem" />
    </Property>
  </ContentItem>
<!-- additional elements deleted from this example -->
</ContentTemplate>

Although some of the sections can be left empty, no more than four cartridges can be added to the right column.

Using a content item list removes the restriction and allows the content administrator to add an arbitrary number of content items to the right column of the page:

<ContentTemplate xmlns="http://endeca.com/schema/content-template/2008"
                 xmlns:xavia="http://endeca.com/schema/xavia/2010"
                 xmlns:editors="editors"
                 type="PageTemplate">
  <!-- additional elements deleted from this example -->
  <ContentItem>
    <Name>New Three-Column Navigation Page</Name>
<!-- additional elements deleted from this example -->
    <Property name="rightColumn">
      <ContentItemList type="SidebarItem" />
    </Property>
  </ContentItem>
<!-- additional elements deleted from this example -->
</ContentTemplate>

To add a content item list to a template:


Copyright © Legal Notices