cs-icon.svg

How to Import a Content Model

The Contentstack Content Models are a blueprint or schema of a content type that defines the structure, fields, and relationships of the content. It is a visual representation of the content type and helps content editors and developers to create and manage content in a structured and organized manner. Content Models allow you to define custom fields, data types, validation rules, and other settings that are specific to the content structure. It enables complete control over how the content is structured and ensures consistency across all the content entries.
With the Contentstack Marketplace Content Models, you can import, view and edit their schema, and use them within your stack. The Content Models include the Content Types, Global Fields, Labels, and Extensions.

Prerequisites

  • Contentstack account
  • Access to the Contentstack Organization/Stack as the Owner/Admin or Stack Developer

Import Content Models to your Stack via Marketplace

Let's follow this step-by-step guide to import and configure Content Models within your stack.

  1. Log in to your Contentstack account.
  2. In the left-hand side primary navigation, click the Marketplace icon to go to the Marketplace.
  3. Click Content Models from the left panel.How to Import Content Models - Navigating to Content Models via Marketplace
  4. Within the Content Models, you see all the available content models. Hover over the Content Model you want to import in your stack, then click the Import button.

    For example, import the Website Footer Content Model.

    How to import content models - Import Website Footer
  5. In the popup window, authenticate the access by clicking the Authorize button and then you can see the steps to import and view the content model within the stack.
  6. Select the Stack Name you want to import the content model to and click the Import Content Model button.
    How_to_import_content_models_-_Select_a_stack_for_import

    Note: If the Content Model already exists within the stack, you can rename the Content Types, Global Fields, and Labels and import them again by clicking the Import Content Model button.

  7. While importing the Content Model to your stack, you can also view Logs.
    How_to_import_content_models_-_Logs_during_import

    After successful import, you can see a confirmation message.

    How_to_import_content_models_-_Completion_Status
  8. Now, click the View Content Models button to navigate to the Content Models section of the stack where you have imported the content model.
    How_to_import_content_models_-_View_Content_Models

    You can see the imported Footer content type in the Content Model section of your stack.

  9. Click the Footer content type to view the schema for the content type.
    How_to_import_content_models_-_View_content_type_schema
  10. To create an entry for this content type, click Entries in the left navigation panel.
  11. Click the + New Entry button to create a new entry.
  12. Select the Footer content type from the list of content types displayed and click the Proceed button.
    How_to_import_content_models_-_Create_an_entry_for_Footer_content_type

    You have created an entry for the Footer content type.

  13. Enter the required content, then Save and Publish the entry.
    How to import content models - Footer content type schema

Alternatively, you can import the prebuilt Content Models by clicking the + New Content Type button and then click Use Prebuilt within your stack via the CMS. For more information, please refer to the Import Content Models to your Stack documentation.

Was this article helpful?
^