Export content type in Drupal 7

35,413

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.

  1. allows you to import a dump file:
    • XLS
    • CSV
    • others
  2. automatically creates a table which can then be used in Views
  3. 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.

Share:
35,413
dianikol
Author by

dianikol

Updated on January 06, 2020

Comments

  • dianikol
    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
    Sk8erPeter over 11 years
    You should have shown a link to the Importer module, if this is what you are talking about...
  • Sk8erPeter
    Sk8erPeter over 11 years
    OK, 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
    chirale over 11 years
    Fast and excellent solution for easy copy and update of content types. Thank you for sharing!
  • jrharshath
    jrharshath over 10 years
    FYI, bundle_copy seems better. It adds an "Export" option under Structure->Content Types - very intuitive to use.
  • weaveoftheride
    weaveoftheride over 7 years
    Is there any way to run the code you get in a module in e.g. hook_install()?
  • weaveoftheride
    weaveoftheride over 7 years
    There 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...