When modeling site content, you may encounter situations where specific groups of fields keep repeating across content types. For example, each web page content type might need a basic set of fields such as title, date, and excerpt text. Or a set of fields dedicated to search engine optimization and social media promotion, such as for the Open Graph protocol or a specific platform (Twitter, etc.).
Reusable field schemas save you from having to repeatedly define similar fields across multiple content types. Instead, each schema can define a set of fields, often dedicated to a specific use case or scenario, that you then link to content types as required. All changes you make to a schema – adding, removing, or renaming a field, for example – get immediately reflected in all linked content types.
Data type availability in schema fields
Schema fields can use a smaller set of data types than content type fields. Data types tied to a single kind of content type (for example, Content item asset and Headless items) are not available.
Custom data types are available in schema fields if their registration includes the ReusableFieldSchema target. See Add custom data types.
To assign created schemas to a content type:
This adds new bar items with the Reusable field schema label to the content type field listing. Each item represents a single schema and lists all fields that it contains.
The system treats fields assigned via reusable schemas as regular content type fields. You can retrieve and filter them via Content Item and GraphQL queries or access them using macros in email templates.
You can configure AIRA features for fields defined in reusable field schemas.
The same limitations apply as when configuring AIRA features for content type fields:
For setup details, see Add AIRA features to your content types.
To see which content types use a specific reusable field schema:
The tab displays a table listing all content types that have the selected schema assigned. Each row shows:
You can open a content type directly from the table by selecting the arrow () icon.
Quick check before deleting a schema
Use the Used in tab to verify that no content types depend on a schema before you delete it.
To unassign a reusable field schema, remove it via the content type Fields tab when editing content types in the Content types application.
This removes the schema from the system.
All schema fields are stored in the CMS_ContentItemCommonData table. SQL tables have a maximum limit of 1024 columns per table. Therefore, a hard limit exists on the number of columns that can be defined for reusable schemas in a single instance.
All schema fields are stored in the CMS_ContentItemCommonData table. When defining schema fields, prefix each field with the name of the corresponding schema to prevent column name collisions on the SQL level.