May 15, 2007

Textpattern to Movable Type Export Script

I am reposting this file here so it doesn’t get lost in the intertubes. Textpattern to Movable Type exporter This script, which I found tucked away in a corner of the ExpressionEngine Wiki with no directions, was written by Ryan Abrams and is still available on his site as of this writing. His site is abandoned, however. The script converts your TXP site to Movable Type format, which is a standard format that can be imported into many other CMSs, including Expression Engine and Wordpress. I have successfully used it to convert my site to Expression Engine (more on that coming soon), and have not lost any data. Comments were all successfully transferred, which is not the case with the other scripts I was able to find. Instructions for use:

  1. download the script
  2. Edit the configuration variables at the top to match your TXP install
  3. FTP the script to your site as a php file. It doesn’t matter where you put it, but you need to be able to browse to it.
  4. Browse to the script in your browser of choice. You will see a bunch of crazy looking stuff displayed, which is your content in MT format.
  5. When the page is done rendering, view source and save the source code to your machine as text.
  6. Delete the script from you server for security. Use the import utility of the new CMS to import your content from this file. For Expression Engine:

  7. Upload the newly created text file to the site with your new EE installation,
  8. use the Import from Movable Type” utility in Admin > Utilities > Import Utilities.
  9. There are a few of options in the EE import utility— I specified Textile as my default entry format. You may need to load the Textile plugin before importing the entries to have this as an option. All the other options are straightforward. The Auto-create categories” option worked for me as well— no need to re-create all those categories by hand! I hope you find this useful.

Previous post
Pretty happy with my decision to never be dogless This weekend we drove 1000 miles to get a puppy. I think we got the best damn one. Anywhere. Solstice is doing a great job passing the torch on to
Next post
The state of Interllectual This spring has been pretty tough for us. It has been non-stop vet visits and hospice care for Solstice and puppy care for Lola and several major