Defining Relations

The Content Engine's relation concept allows these related items to be managed in an organized and standardized way.

The news content type defined in temp-dev's content-type resource file contains the following reference:

<ref-relation-type-group name="attachments"/>

Elsewhere in the content-type resource the relation type group attachments is defined as follows:

<relation-type-group name="attachments">
  <relation-type name="images">
    <ui:label>Pictures</ui:label>
  </relation-type>
  <relation-type name="stories">
    <ui:label>Stories</ui:label>
  </relation-type>
</relation-type-group>

In other words, the news content type supports two relation types: articles and image.