In Drupal 6 we had content type export import, I cannot find this in Drupal 7.
Any tips please?
Drupal Answers is a question and answer site for Drupal developers and administrators. It only takes a minute to sign up.Sign up to join this community
I ended up using the Bundle Copy module.
You could use Features to export and import content types in code.
This features was part of CCK module, that you can see move into Drupal core. In their project page the maintainers wrote it:
content_copy : The D7 branch of the Features module supports expoting and importing content types and fields in 'feature' modules. There is currently no UI to manually export and import field definitions.
So like @digital said, you should use Features.
+1 upvote on the Bundle Copy module by giorgio79 above - a similar module would be: the data_export_import module.
What I like about data_export_import is that it is an all-in-one module (for export AND import of data. Whereas as with other solutions, the import and export stages are done by separate modules, which could mean that extra work is needed ensuring compatibility of the export with the import.)