Custom Content Types

When a user creates content, such as a blog or event, the content type determines its fields and how each field behaves. For example, a blog has a field dedicated to the author’s name to separate it from the body. CMS provides some content types by default, and you can create custom types for other content, such as blogs, events, or product layouts. Create, edit, and delete custom content types with the CMS Content Type Manager app from AppExchange, or programmatically with Metadata API or Tooling API.

You can have up to 20 active custom content types, in addition to the standard types. To add more custom types, contact Salesforce.

Before you create a custom content type, separate the content into fields. For each field, assign attributes to configure the field’s behavior. For example, to make a field required, assign the required attribute to the field and set its value to true. For the attributes that you can apply to a field, see ManagedContentType in Metadata API Developer Guide.

Each custom content type can have up to 15 fields.

Add your custom content type to CMS with one of these methods.

  • Use CMS Content Type Manager, available in AppExchange, for a convenient point-and-click way to create content types within Lightning Experience.
  • Create a ManagedContentType XML component for your custom content type, and use Metadata API to add it to CMS.
  • Create a ManagedContentType JSON object for your custom content type, and use Tooling API to add it to CMS.

Each content type has its own detail page that determines how the content displays when viewed in CMS. After you create a custom content type, create a CMS content detail page designed for the content type. For more information, see Create a Detail Page in Salesforce Help.