Export content type in Drupal 7
Solution 1
The Features module can export content types and allow you to import into another Drupal site.
Solution 2
Try bundle_copy
It's like the old D6 content copy. For me its quicker.
Solution 3
Bundle_copy & Features are good choices as have been suggested, but...
Give Importer a try if you want to create a new content type from external data.
- allows you to import a dump file:
- XLS
- CSV
- others
- automatically creates a table which can then be used in Views
- can be sued to derive a content type from that point
Solution 4
For options, please see the discussion over at http://drupal.org/node/1011620. There's also a simple copy/paste module available if Features is too cumbersome for your specific purposes: Bundle copy.
dianikol
Updated on January 06, 2020Comments
-
dianikol over 4 years
Is there a way to export a content type from a site and import it to another? I haven't found any modules to do that yet.
How would you achieve that? It's a useful thing to be done otherwise it is very time consuming to create the same content type over and over again.
-
Sk8erPeter over 11 yearsYou should have shown a link to the Importer module, if this is what you are talking about...
-
Sk8erPeter over 11 yearsOK, I know, I know, but I think you should edit the original post. :) (and write "Importer" module's name with uppercase, because this way it's not unequivocal that you're talking about a module)
-
chirale over 11 yearsFast and excellent solution for easy copy and update of content types. Thank you for sharing!
-
jrharshath over 10 yearsFYI, bundle_copy seems better. It adds an "Export" option under Structure->Content Types - very intuitive to use.
-
weaveoftheride over 7 yearsIs there any way to run the code you get in a module in e.g. hook_install()?
-
weaveoftheride over 7 yearsThere is a function in the bundle_copy module - bundle_copy_import_submit() with some code that can be using to read the $data array and import in a hook_install...