Creating and managing content-types
Let's create a Tutorial content-type. Since we will have multiple tutorials in our system, we will use the COLLECTION TYPES category to create a Tutorial content-type.
From the Content-Type Builder plugin page, click Create new collection type. The Create a collection type modal will appear. It has two tabs—the BASIC SETTINGS and ADVANCED SETTINGS tabs.
In the basic settings tab, we have three fields—the Display name and API ID (Singular) and API ID (Plural) fields. These are described in more detail here:
- The Display name value is what we want to call our content-type, so enter the value
Tutorial
in this field. - The API ID fields are automatically generated from the Display name, the Singular format is used in creating the database table as well as generating the API routes, while the Plural format is used in the API URL. For example, the Tutorial content-types can be accessed using the URL
/api/tutorials
.Best...