Managing Content Types with the Contentstack SaaS Headless CMS

This blog post contains information about managing content type definitions with the Contentstack SaaS headless CMS, meaning migrating content type definitions between stacks. These and similar considerations apply to any headless CMS.

A content types specifies the fields that appear in entries of that type. Contentstack stores content type definitions in its repository. You can export content type definitions, for example to a source code management system. You can use exported content type definitions to migrate new content types and changes to existing content types from one stack to another, for example if a content type must appear in multiple stacks or to migrate changes from a development stack to a test stack and eventually to a production stack. You can automate content type management as part of your solution build and deployment processes.

Content type and global field definitions include field visibility rules and other configuration specific to the fields in the content type or global field but can depend on two types of records elsewhere in the repository: global field definitions and custom field type definitions. When you manage a content type, consider any global fields and custom field types that it uses. You can use the content management API to export and import custom field definitions:

You can use the content management API to export and import content type and global field definitions:

You can use the Contentstack Command Line Interface (CLI) to export and import content types, global fields, and extensions including custom field types:

You can also use the CMS user interface to export and import content type and global field definitions.

When importing, it would make sense and may be necessary to import global fields and custom field types before importing the content types that use those resources.

If you have any additional information about managing content types with Contentstack, please comment on this blog post.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: