Manage page types in legacy Compose

Legacy Compose content model requirements

The legacy Compose content model is based on two content types: "Compose: Page" and "Compose: SEO". They are created programmatically before you start working on your first project with legacy Compose.

"Compose: Page" is the parent content type for each legacy Compose page, and includes "Compose: SEO" and Page as references.

"Compose: SEO" is used to add SEO metadata to the pages you create in legacy Compose.

"Page" is a custom content type with custom fields that defines how your page in legacy Compose will look. The mandatory field for all page content types is a Text field that should have a Field ID with a value “name”. The rest of the fields can be of any type.

NOTE: You can link more than one page to the "Compose: Page" content type to have several page types in legacy 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

Create 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

Configure 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 remove