Managing page types in Compose

Page types tab

The Page types tab displays the list of the page types available in your Compose project.

In the Page types tab, you can do the following:

  • View the list of available page types.

  • Add a new page type - Click Create Page Type to create a new page type to be used in your Compose project.

  • Configure a page type - Click Edit to configure the fields of your page type in Contentful web app.

    Compose Page types 401

Creating a page type

To add a new page type:

  1. In the Page types tab, click Create Page Type.

    Compose page types 403

  2. In the Name field, enter a custom name for your page type.

  3. Optional: Enter a custom ID in the API Identifier field.

    NOTE: API Identifier is generated automatically based on your page name, but you can change it if you like.

  4. Optional: Add custom description for your page type in the Description field.

  5. Click Create. Your page type is created. Next, it is necessary to add fields to your page type. IMPORTANT! When you create a page type, it is "empty" meaning that it doesn't contain any fields yet. To be able to fill your page type with content, you need to configure the page type by adding fields to it.

Compose manual setup 103

Configuring a page type

To configure your page type:

  1. Go to the required page type and click Edit. Your page type editor will open in the Contentful web app.

    Compose page types 402

  2. Add a new field to your page type by clicking Add field. Then select the required field type and configure the field as desired. NOTE: To learn more about configuring fields, please refer to Validations.

    Compose manual setup 105

  3. Repeat the previous step to add another field to your page type.

  4. After adding all the desired fields, apply changes to your page type by clicking Save.

    Compose manual setup 106

Was this helpful?
add-circle arrow-right remove style-two-pin-marker subtract-circle