WHAT YOU'LL LEARN
  • how to clone a content model

Webiny allows you to create a new content model by cloning an existing content model. All the fields, validations, and other settings are copied over from the original content model to the clone content model.

In this tutorial, we will learn how to clone a content model. As an example, we will create a content model with the following attributes by cloning an existing content model:

AttributeValue
NameVirtual Product
GroupE-Commerce
DescriptionDemo Virtual Product Content Model for E-Commerce project

Prerequisites
anchor

To follow this tutorial, you need the Product content model to clone it. If you don’t have the Product content model, please follow the Create Content Model tutorial to create it.

Clone Content Model
anchor

  1. From the Side Menu, Click Content Modeling > Models.

    ✔️ The Content Models screen opens.

  2. Click the Kebab Menu Icon ( ⁝ ) on the Product content model.

    ✔️ Menu opens with Clone, Export, and Delete options.

  3. Click Clone.

    ✔️ The Clone Content Model screen opens.

  4. In the Name textbox, type Virtual Product.

  5. In the Singular API Name textbox, type VirtualProduct.

  6. In the Plural API Name textbox, type VirtualProducts.

  7. In the Content model group drop-down, if you have the E-Commerce group, click it, else click Ungrouped.

  8. In the Icon dropdown, click globe icon (🌐).

  9. In the Description textbox, type Demo Virtual Product Content Model for E-Commerce project.

  10. Click + Clone.

    ✔️ Virtual Product content model is created.