Creating just the right content type that suits your content needs undoubtedly cannot happen without determining what your content needs are. This is where content modeling comes into play.
Content modeling means defining the structure of your content at a granular level. It involves:
The process of modeling content in Contentstack begins as soon as the designs (or even design wireframes) are finalized. Based on the designs, site managers/developers need to identify the structure of content type that needs to be created in Contentstack. Developers can then start with actually creating the content type by adding relevant fields.
Since the process of content modeling begins at design stage, any minor (and certainly, major) error made while modeling will be reflected on the actual structure of your web/app page. It is therefore recommended that content modeling should not be skipped, and should be done accurately.
Each section/component of your website or mobile app should have an appropriate content model in place. Content types, and thus the actual content, should then be created accordingly for each component. In the next section, we will understand the process of creating a robust content model, and look at an example of creating one.
Let’s look at each of the steps briefly.
Determining what kind of content you need
Content modeling begins with this stage. Here, the rough designs or wireframes are shared with the site managers or developers. Content managers can analyze how content will fit in, and whether or not any changes are required in the designs as well as the content plan.
Deciding how it should be structured in Contentstack
Based on the finalized designs, developers identify the kind of content type to be created and the fields that will be included within the content type. In this step, fields need to be identified in a way that makes the content type more optimized and reusable.
Defining the required content type and fields
Now that the structure of the content is ready, it’s time to start creating your content type. Creating a content type is a two-step process:
We will look at an example to understand content modeling better. Let’s assume that you own a new website, and wish to post new articles to it regularly. We will follow the steps given above to develop a content model for the news article page.
Step 1. Analyzing requirement
The news article page should contain a headline, date, location, image, body text, and author’s name. Let’s assume that the structure of the news article that you have in mind is similar to the article given below:
Step 2. Identify structure
Let’s identify the fields that should be used to build a content type for creating the page shown in the above step.
Step 3. Develop content type
Since the news article piece is a web page, we will set the content type as Webpage. Also, this content type will be used to create multiple new articles. Hence, the content type should be of Multiple type.
Then, add all the required fields to the content type. The fields names can be changed by editing their properties.