relation-type

Defines a named relation type. Relation types allow you to classify relations between content items. You might, for example, define a content-type with the relations "article-image" (intended for an image to be displayed with a content item's body) and "teaser-image" (intended for an image to be displayed in a content item's teaser). In CUE content item editors these relation types will appear as two drop zones labelled "article-image" and "teaser-image". A drop zone is an area in which the CUE user can drop content items (in this case the images he wants to appear in these locations).

Syntax
<relation-type
    name="NCName"
    id="NCName"?
    max="integer"?
  >
  <allow-content-types>...</allow-content-types>*
  ANY-FOREIGN-ELEMENT*
</relation-type>
Examples
  • <relation-type name="images">
      <ui:label>Pictures</ui:label>
    </relation-type>
Attributes
name="NCName"

The name of the relation-type element.

id="NCName" (optional)

The id of the relation-type element. Set this attribute if you want to be able to reference this element using XInclude. Otherwise it is not required.

max="integer" (optional)

The maximum number of allowed relations in this relation type.