2

Looking to clean up an EE-installation used for playing etc for some years now, and move relevant content (channels) into a complete new installation. Any thoughts on tools or methods for doing this?

The only "specials" used are Channel Images and Tagger from DevDemon. Both old and new sites will be MSM, but only main site to be exported.

Preferred workflow: Set up new EE-installation Install relevant plugins etc Create relavant channels etc --Import data from old site Change DNS to new site

Channels, Configs, Variables, Templates etc I'll do manually but it would be nice to be able to transfer content.

/patrick

3

There are two steps here. First, getting the data out of the first install. And second, getting it back into the new one.

For exporting, there's a number of routes you can take. Since you're relying on some fieldtypes that use their own tables, the easiest route might be to create an XML template for each channel. That will allow you the flexibility to use the template parser to output those fields. A pretty simple {exp:channel:entries} tag pair will output all of the entries as XML nodes. (You could use JSON instead, but I've found that it's easier to output XML from a template.) I've also written custom scripts that run against the EE database to create the XML files. Obviously, that requires a bit more work to prepare the queries joining all the necessary tables and parsing the output.

For importing, I highly recommend Datagrab. It's very flexible with importing and works with a number of fieldtypes.

There is also Solspace Importer, but I don't have any experience with that tool.

One last tip: Make sure you create a field in each channel of the new site to hold the old entry ID. This will allow you to easily update all the entries you just imported if some of the data doesn't come through right. You can just configure Datagrab to match based off of the old ID, and it will know to update the entry instead of create a new on.

| improve this answer | |
  • Sounds extremely reasonable.. Just need to figure out the XML-part, but this might be the time I actually spend some time to learn :) – Patrick Hvid Aug 22 '13 at 13:21
  • 1
    Start with an RSS template and add fields from there. It works just like HTML except you can add anything you want. – Jeremy Gimbel Aug 22 '13 at 19:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.