Drupal - How to copy content type?

Maybe too late you can use the Bundle Copy module:

Bundle copy is a replacement for the Content copy module which lives in the CCK project for Drupal 6. Has export/import support for: Node types, Taxonomy, User, Field API fields, Field groups

UPDATE 7.x-2.x-dev notes

The following features have been added:

  • Export/import of Field Collection
  • Cloning of Content types
  • Export/Import of Commerce Entity bundles

Drupal 8: Bundle Copy is in Drupal 8 Core CMI.


I used the Field tools module, and it worked flawlessly.

All I did was create my second content type, used this module functionality to clone all the fields to the new content type, then uninstalled the module. Bundle copy and Features seem like ridiculous ways to duplicate a content type, this was super simple and exactly what I wanted.


If you mean export by duplicate use the Features module.

The features module enables the capture and management of features in Drupal. A feature is a collection of Drupal entities which taken together satisfy a certain use-case.

Features provides a UI and API for taking different site building components from modules with exportables and bundling them together in a single feature module. A feature module is like any other Drupal module except that it declares its components (e.g. views, contexts, CCK fields, etc.) in its .info file so that it can be checked, updated, or reverted programmatically.

Tags:

Nodes

7