Content type consists of a set of fields that define the structure of your web page or mobile property.
Additional Resource: Check out the Content Modeling section to understand how you can define the structure of a content type as per the requirement.
To create a content type, log in to your Contentstack account, and perform the following steps:
- Go to your stack where you want to create a content type, and click on the Content tab (if it is not open) at the top.
- Click on the + New Content Type button.
- In the Create New Content Type forms that appears, perform the following steps:
- Select either Webpage or Content Block depending on the content structure:
- Webpage: For web pages (such as home page, about us, and so on)
- Content Block: For mobile applications or the partials of a website (header, footer, navigation, menu).
Note: By default, you will find both the Title and URL fields in case of the “Webpage” content type, but for “Content Block” you will only find the “Title” field.
- Enter the Name for the content type. The Unique ID will be auto-generated.
- Based on the number of entries you want to create, select either Single (for creating a single page) or Multiple (for creating multiple pages of same structure)
- Add a Description for your stack. This is an optional step.
- Finally, click on Create and Add fields.
In the Content Type Builder page, drag and drop the fields you want, modify their behavior by setting their properties, and click on either Save or Save and Close to save your content type.
Here is an example of a News content type in the following screenshot:
You can even create a content type by two other methods:
- By importing the JSON schema of your content type via the Contentstack UI
- By means of the Create a content type API request.
Note: You can check out our documentation on how to generate the JSON schema for creating a content type to know how you can add/update fields in your content type.
After successful creation of the content type, you can start adding entry(ies) and publish them to an environment.