I think we need a capability to import / export CCK content definitions, like views module allows.

My project involves quite a few inter-related CCK content types. Development of CCK content model is taking some time but is happening. What I am worried about is transfering this configuration into production system. There are many content types, fields and so on. If everything is re-entered by hand this could mean significant downtime and is extremely undesirable.

Is there a way to bulk-transfer CCK configuration? Is that enough to copy the following tables or more work is needed:

   * node_type_content
   * node_field
   * node_field_instance
   * node_content_X
   * node_data_field_X

Does CCK store any configuration anywhere else (e.g. in variables table)? Whether or not this is the case, perhaps we should have an import / export capability like views module has?

Bonus option: import / export of Views/CCK in one batch - since they are so interdependent.

Comments

dkruglyak’s picture

I created a placeholder book page to document the current state of affairs: http://drupal.org/node/98432

If you have comments on what should go there - please add them to this issue.

styro’s picture

Is this along the lines of what you are looking for? ...

http://cvs.drupal.org/viewcvs/drupal/contributions/modules/importexporta...

It might just need more definitions created - although I'm not really up with the latest developments with either module.

dkruglyak’s picture

Looks relevant at the first glance.

How to install this? Simply drop the *.inc files into cck home directory? Or is this part of importexportapi module? Where to get started?

I worry about keeping it up to speed with latest changes in CCK. Can we create a module for this or contribute the code to CCK itself?

yched’s picture

Status: Active » Closed (duplicate)

The import / export feature is discussed here : http://drupal.org/node/58153
I added a link there to your handbook page, for people to contribute to.

For the more general 'import export API' module, see the project's page http://drupal.org/project/importexportapi, and ask support questions over there.