Migrating MT 3.x to 4.x and preserving BASENAME

May 5th, 2009

I’m a big fan of WordPress but I still use MovableType for some blogs. Recently I had to upgrade an old MT 3.25 to the newest 4.25 and decided to that cleanly. Created a new blog on 4.25 with all the required configurations. Then I’ve tried to export all the entries on 3.25 and imported everything back on 4.25. Everything went well except for the minor glitch of MT 3.25 doesn’t export the BASENAME information for each entry (that’s useful if you want to preserve the old links). So, here’s what I did. On your old MT 3.25 edit your lib/MT/ImportExport.pm and just add the BASENAME for the template text on the export sub, just before the DATE:

BASENAME: < $MTEntryBasename$>
DATE: < $MTEntryDate format="%m/%d/%Y %I:%M:%S %p"$>

Now, you’ll export a .txt wit all the entries, including the basename. MT 4.x will import this. All you have to do is press the Publish button.

4 Responses to “Migrating MT 3.x to 4.x and preserving BASENAME”

  1. Nick Says:

    Works great just make sure to omit the space in your code:

    
    BASENAME: < $MTEntryBasename$>
    DATE: < $MTEntryDate format="%m/%d/%Y %I:%M:%S %p"$>
    

  2. Nick Says:

    Should be:

    BASENAME:
    DATE:

  3. Nick Says:

    Sorry – the code should be without spaces

    
    BASENAME: < $MTEntryBasename$>
    DATE: < $MTEntryDate format="%m/%d/%Y %I:%M:%S %p"$>
    

  4. Fred Says:

    Yeah, you’re right. I didn’t omit the spaces. That’s a problem with my CSS for code viewing. I’ll try to fix that.

Leave a Reply