loading table of contents...

Content Server Manual / Version 2107

Table Of Contents

4.2 Creating Content Type Definitions

In CoreMedia CMS you define your content type definitions in XML files. CoreMedia CMS allows you to administrate content type definitions modularly. That means, that content types can be defined in different independent files, instead of one monolithic file. The Content Server loads and combines all content type files which match a given pattern. You can define the pattern in the cap.server.documentTypes (see Section 5.1, “Configuration Property Reference” for details).

Schema of content type definitions

Figure 4.1. Schema of content type definitions

You can also link from one content type file to content types and grammars defined in other files.


In this example, the content type BaseDocument and the grammar mycompany-richtext are defined in the base-doctypes.xml file and are also used in the specific-doctypes.xml file. To this end, both are imported using the <ImportDocType> and <ImportGrammar> elements.

<DocumentTypeModel xmlns=""

 <XmlGrammar Name="mycompany-richtext" Root="company"
    PublicId="-//MyCompany//DTD Richtext 1.0//EN"

 <DocType Name="BaseDocument" Abstract=“true“>
  <StringProperty Name="Titel" Length="200"/>


Example 4.1. The base-doctypes.xml file

<DocumentTypeModel xmlns=""

 <ImportDocType Name="BaseDocument" From="Base-Doctypes"/>
 <ImportGrammar Name="mycompany-richtext" From="Base-Doctypes"/>

 <DocType Name="Text" Parent="BaseDocument">
  <XmlProperty Name="Text" Grammar="mycompany-richtext"/>



Example 4.2. The specific-doctypes.xml file

Search Results

Table Of Contents

Your Internet Explorer is no longer supported.

Please use Mozilla Firefox, Google Chrome, or Microsoft Edge.