- 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:
|Demo Virtual Product Content Model for E-Commerce project
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.
From the Side Menu, Click Headless CMS > Models.
Hover on the Product content model.
Click the CLONE CONTENT MODEL icon.
✔️ The Clone Content Model screen opens.
In the Name textbox, update the text to Virtual Product.
In the Content model locale dropdown, click Current locale.
In the Content model group drop-down, if you have the E-Commerce group, select that group; else select Ungrouped.
In the Description textbox, update the text to Demo Virtual Product Content Model for E-Commerce project.
Click + CLONE.
✔️ Virtual Product content model is created.