Create Custom Content Type Sample
Edit Custom Content Type Sample
Delete Custom Content Type Sample
Display Salesforce CMS Content
Display CMS Content in Experience Builder Sites
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 100 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.
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.