I want to rejig my web site when upgrading from 4.7 to 5.1, merging two old node types (blog, article) into one new node type. I'd like to keep all the info from the nodes, including the content, path, timestamps, nid and comments. They also have a taxonomy, but each type has its own category with similar values (e.g. both blog and article can be "politics"), so merging the two into one taxonomy won't be as simple.
I've dug around the modules section, and searched the forum a bit, but I've not found a good answer. I don't really know Drupal well enough to whip up a quick script, and a quick look at a database dump just makes me even less certain.
Has anyone done anything similar? Is there a code snippet I could modify to migrate data from one node type to another, spanning Drupal versions?
Comments
As always happens, after
As always happens, after posting I find some more useful tips, though they all look a bit intimidating.
There's this, but I'm not too sure about writing the script to grab the appropriate data:
http://drupal.org/node/133027
Then there are these, but I don't know how to get the appropriate data out into a CSV file:
http://groups.drupal.org/node/2197
http://drupal.org/project/node_import
I'm guessing with the CSV-based solutions I'd also need to do it in two steps:
- Import from one 4.7 site to another 4.7 site
- Upgrade the second site to 5.1
?