Migrating from TXP to EE - Conclusion Mar 29. 094
Ok, so steps 1 through 5 pretty much got us to a conclusion but there was one little fact that really had me bugged about the migration. I wanted to persist the article IDs from Textpattern during the migration to ExpressionEngine because they are used in my permalink URLs. Basically I don’t want to break the internet (or my small part of it) by altering the URL structure in the switch. How did I do it?
Open ‘cp.mt_import.php’ form within ‘/system/cp/’ then at line 954 add:
$ids = array();
then at about line 1028 add:
// IDs Hack
if (strpos($parts['0'],'ID') !== false)
{
$ids[$id] = trim(str_replace('ID:','',$first_section[$i]));
}
At about line number 1765 amend the entry id value to:
'entry_id' => $ids[$id],
Now save and upload your amended import script. Back in Textpattern you’ll also need to add one new line to the top of your export script.
ID: <txp:article_id />
So your Textpattern export will now include the original article ID and the import process will maintain this (so long as you have deleted all other weblog entries prior to import).
So, that’s it. I’m all done… I migrated… now I just have to find the time to finish off the new design and implement it! Happy Migrating!!!
@Ian: One reason… I love ExpressionEngine, is that not enough? :)
Good enough for me :). Being a user and a fan of both I see the pros and cons of each but I agree Expression Engine does seem to offer that something extra even though it dies come at a price.
By the way, any chance you could remove email links from comments? I wage a daily war on spam as it is ;)
@Ian I have to agree with Nathan.
I was a Textpattern user for some time but never felt or had time to get a full understanding of it.
With EE it was a different story, I heard about how great it was then a commercial opportunity arose and I made the leap. I’ve never looked back since and can’t recommend it enough. However because my site wasn’t getting as much traffic I didn’t need to complete all of the steps Nathans documented here.
For me I’m now using EE day to day and having my site built on EE to makes complete sense. I can also use my site as a testing ground for ideas and experiments.
The migration process from one CMS to another is (as you’ve demonstrated) no small task. I just wandered why you thought it was worth the effort to make the switch from Textpattern to EE?