Ok, I’ve managed to overcome my final stumbling block with migration from Textpattern to ExpressionEngine. I wanted to persist the article IDs from TXP to EE 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.
Here’s what I did.
Open ‘cp.mt_import.php’ form within ‘/system/cp/’ then at line 954 add:
$ids = array();
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 also need to add one new line to the top of your export script.
ID: <txp:article_id />
So your TXP 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).
Happy migrating!!!