We have a Drupal site in the beginning stages of a redesign. As part of the agreed new design, only three content types (and their corresponding existing nodes in the database) will need to be migrated to the new site and new database. Is there a module that allows me to selectively choose nodes from particular content types and export in a format that can be imported as content in the new site?
I have never migrated content in this way before. I have always done an upgrade from one version of Drupal to another (5 to 6) and working with legacy content from that point on, but this is the first time I need to export only some content and import it into the new site.
I know some people have done that before but I am confused as to how to do this properly with the available modules out there. Any suggestions are appreciated.
Comments
Bump.
Bump.
I wish I had the time to give
I wish I had the time to give you a more direct answer, but the information you need is given in this larger video covering how to create an import export module for an Ubercart store. Actually, the key code logic is given pretty near the beginning of where I start walking through the code, so you won't have to listen to the whole thing.
http://replay.uci.edu/clients/drupal/Creating_Custom_Ubercart_Import__Ex...
slides: http://www.missingubercartmanual.com/Creating-Custom-Ubercart-Import-Exp...
The process would be to write an import export module, reading and writing of CSV files of different content types. Then by editing in Excel, save to a new file that is only the nodes you want in the new system and import that.
I wish I knew a module that made this easier, but I don't. The import export modules that I'd tried in the past just came across as too complex, or not yet D6, or some dependency or other. The module situation may have improved since I last seriously looked, but the essential logic to read and write a node in CSV is really nothing. The only tricky bit is including custom fields of some content type on export, and then validating their values correctly upon import. If you know your content types, that's easy, and the whole process is easy.
-Blake
www.BlakeSenftner.com www.3D-Avatar-Store.com