Warning
You're browsing the documentation for an old version of Webiny. Consider upgrading your project to Webiny 5.39.x.
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 Headless CMS > Models.

  2. Hover on the Product content model.

  3. Click the CLONE CONTENT MODEL icon.

    ✔️ The Clone Content Model screen opens.

  4. In the Name textbox, update the text to Virtual Product.

  5. In the Content model locale dropdown, click Current locale.

  6. In the Content model group drop-down, if you have the E-Commerce group, select that group; else select Ungrouped.

  7. In the Description textbox, update the text to Demo Virtual Product Content Model for E-Commerce project.

  8. Click + CLONE.

    ✔️ Virtual Product content model is created.