CoreMedia CMS manages content organized in freely configurable so-called content items. Content items normally contain
the information of one entity. They may contain only a single information, an image, for example or may merge all information concerning a content object.
Consider, for example, an article which might have a title, the actual article text, accompanying images and some more information. CoreMedia
Content Cloud comes with predefined content types for a lot of use cases.
The next image shows how some of the predefined content items define the structure of your Website. The Page item defines the structure
of a page of your Website while a Collection combines some Articles (or other content) which should be shown in a specific part of the page.
Read the Studio User Manual
to learn more about the other content items.
Simplified page structure of the default sites
To have a consistent appearance and to avoid unnecessary effort, templates should be used for the creation of content items.
CoreMedia supports this in the form of content types, which can be designed following object-oriented principles.
Content items in CoreMedia CMS are described by so-called content properties (also called fields or properties for short).
An item of the type "Article" for example may consist of properties such as:
- textual content
- accompanying images
On the other hand, an item of type image item has different content fields, such as dimensions, graphical data or copyright information.
The more structured a content item is in specific fields, the more flexible is the access to contents from output templates,
for web page construction, for example.
Since content type and source format of the content items are application-specific, CoreMedia Content Cloud content types are not
rigidly programmed. You have the possibility to design the content types and fields that you need to represent the maximum
amount of structured information from your content in CoreMedia Content Cloud. In general, this design process will be done in cooperation
with members of the editorial staff.
The content types can be defined in one or several XML files, to support a more modular content type assembly.
<DocType Name="CMArticle" Parent="CMTeasable">
<LinkListProperty Name="master" Max="1" LinkType="CMArticle" Override="true" extensions:weakLink="true"/>
<DocType Name="CMTeasable" Parent="CMHasContexts" Abstract="true">
<LinkListProperty Name="master" Max="1" LinkType="CMTeasable" Override="true" extensions:weakLink="true"/>
<StringProperty Name="teaserTitle" Length="512" extensions:translatable="true"/>
<XmlProperty Name="teaserText" Grammar="coremedia-richtext-1.0" extensions:translatable="true"/>
<XmlProperty Name="detailText" Grammar="coremedia-richtext-1.0" extensions:translatable="true"/>
<LinkListProperty Name="pictures" LinkType="CMMedia"/>
<LinkListProperty Name="related" LinkType="CMTeasable"/>
<LinkListProperty Name="authors" LinkType="CMPerson"/>
Example DocType definitions for CMArticle and CMTeasable
The code example above demonstrates that CoreMedia Content Cloud has an inheritance concept for content types and properties.
In the <DocType> element, there is an optional attribute, Parent. If this attribute is set to the name of another content
type, the new content type inherits all fields of its parent content.
Each content type needs a specification of all properties that the corresponding content items should have. The properties, presented
as fields to the editor, vary, for example simple strings (such as for the author property), XML for the textual content or binary
data for graphics. This is determined in the content definition type with appropriate property types.
The property types are:
The XmlProperty field ist very versatile, because you can attach different grammars to it. Therefore, it is used in the CoreMedia system, for example, for
rich text fields but also for struct fields.
Property Editors in Studio
CoreMedia Studio contains predefined content editors for all property types. However, you can customize the property editors
to show content in the way you want.
- See the Content Server Manual
for more details of content type definitions
- Find a list of predefined content types in the Studio User Manual
- Get a more detailled overview of how the predefined content types are used to define your site structure in the Studio User Manual
- Learn how to customize Studio property editors to show the content of your content properties, in the way you want in the Studio Developer Manual