Synopsis

Content Type Clone allows Drupal users with the "Administer content types" permission
to clone content types in one click.

Access the content type list, click on "clone" for the content type you want to clone, save the clone form. The module will then clone the content type, and copy all fields to the newly created clone.

Content Type Clone also offers the options to:

* Copy all nodes from the source content type to the target content type
* Delete nodes from the source content type after they have been copied to the target clone

Content Type Clone has been created in order to offer a quick and simple way to clone content types and automatically copy all fields in Drupal.

D7 Git command

git clone --branch 7.x-1.x https://git.drupal.org/project/content_type_clone.git content_type_clone

D8 Git command

git clone --branch 8.x-1.x https://git.drupal.org/project/content_type_clone.git content_type_clone

  • Token: when this module is enabled, tokens are available to create a name, a machine name
    and a description for cloned content types.
  • Bundle Copy: this module will also allow you to clone a content type by exporting it, replacing the required fields, and then importing the updated php code in order to get a renamed copy of the content type that needs cloning. Sometimes you just want to clone a content type in one click without having to look at PHP code or perform too many actions.
  • Field Tools: this module will also allow you to clone a content type with many options.

However, none of these modules will provide the following complementary maintenance tasks when cloning a content type:

* Copy all nodes from the source content type to the target content type
* Delete nodes from the source content type after they have been copied to the target clone

Content Type Clone is also extremely simple to use: click on the clone link in the content types list page.

Project information

Releases