The content-type Resource

The content-type resource determines (among other things):

  • What kinds of content items a publication can contain

  • What fields each kind of content item contains

  • The type of each field

  • Constraints on what you can enter in fields (maximum length, maximum and minimum values and so on)

  • How the fields will be displayed in the CUE editor

  • What relations each kind of article can have

In the past, the content-type resource was always a single file, but this is no longer necessarily the case. As well as a content-type file, you can also upload a content-type folder containing one or more modular content type files. Each modular content type file:

  • May be called anything you like.

  • May contain one or more complete content type definitions.

  • Must be self-contained: that is, a content type in one file cannot depend on field definitions in another file.

When a publication is created, all uploaded content type definitions are included in the resulting publication, whether they are defined in an old-style content-type resource or in modular content type resource files. You must ensure that all the content type definitions uploaded to a publication have unique names.

For instructions on how to upload content type definitions in general, see Upload Resources. For specific instructions on how to upload modular content type definitions, see Uploading Modular Content Type Resources.

The following sections provide an introduction to the content-type resource, and some of the things it is used for. For a full, formal description of the content-type resource format and all the things you can do with it, see here.