Content type schemas
Content type schemas are JSON schemas that define a type of content to be created, including its structure, format and validation rules. In Dynamic Content, content type schemas match the format of the JSON Schema standard, with a few extensions and some keywords that are not supported.
You can create schemas within Dynamic Content using the schema editor or store them on an external hosting service.
In this section we provide more information about using the schema editor to create content type schemas, slot schemas and partials, together with examples. The reference section provides more detail about schema properties and validation.
For more information about registering content types see the working with content types section.
The Schema Editor
- Using the schema editor this page shows how to create content type schemas with the schema editor, use the form preview and view sample output
- Simple banner example page describes the format common to all content types
- Slot example shows how to use the schema editor to create a slot schema
- Using partials shows how to use the schema editor to create schemas with reusable definitions
Content type schema reference
This section includes a reference to each part of a content type schema, including property types, validation and linked content.
The creating localizable content type schemas page explains how to create a schema that supports field level localization.
- Content type format page describes the format common to all content types
- Property types are the types such as strings, integers and arrays that make up all content types. This page introduces each property type, together with an example of its use.
- Validations are a way of constraining and validating content, including setting the maximum and minimum number of characters in a string, or the range allowed for a number. Most of the standard validations are supported, but the exceptions are noted on this page.
- Media and content choosers are a convenient way of specifying that a user interface browser is shown to allow users to add images, video or content
- Inline and linked content. Describes how to combine schemas to contain object definitions from external files and how to structure linked content such as a carousel linked to one or more carousel slides.
- Creating localizable content type schemas. How to design a content type schema to support properties that can be localized