Import Nucleus into MT
I posted this info on the MT Support Forums. Just thought it would be a good idea to get it archived.
Create a new template in Nucleus (Admin -> Nucleus Management -> Edit Templates ... I just named mine 'Output' ... in the Item Body field, paste the following, making sure there are no trailing spaces at the end of the lines, and leave the dashes exactly as they are:
Paste into the Date Format field:
Be sure to click Update. Go back into Nucleus Management, go into Edit Skins. Go into the Main Index for the default skin. Select all and copy, then back out to the Edit Skins page. Create a new skin, name it 'Export.' Paste into the Main Index part of the skin. Now delete everything between
and
Edit this tag-
Where it says "output" replace with whatever you named your new template. Update Skin. Go back to Admin Home. Click Settings under Actions for your Nucleus blog and change the Default Skin to Export. Click Change Settings and then view your now very ugly blog.
Create your import file - in your browser, View Source (some say only Netscape/Mozilla outputs the correct HTML but I was successful with IE). Save the file as import.txt. In your MT directory on your web server, create a new directory named 'import' and upload the text file there. Surf to your mt.cgi page, log in and go to Manage Weblog. Click Import/Export, set your options. Check Import Entries as Me, select Post Status, leave the next two fields blank. And then click Import Entries. If all goes as it should, you will get a page showing a list of your entries being imported into MT. When it's done, hit Back, then Edit Entries to see the results.
Note, it does import all Nucleus line breaks as non-breaking spaces, so paragraphs will have a lot of white space in between. And any images you imbedded will be gone, but the div tag will remain, so you can simply enter the correct URL to get them to show up again.
To the best of my sometimes faulty memory, that is exactly how I got Nucleus to import into MT. I hope it works for you too!
« Hush me up!
TITLE: <%title%>
AUTHOR: <%author(realname)%>
DATE: <%date%> <%time%>
-----
PRIMARY CATEGORY: <%category%>
-----
BODY:
<%body%>
-----
EXTENDED BODY:
<%more%>
-----
--------
Paste into the Date Format field:
%m/%d/%Y %I:%M:%S
Be sure to click Update. Go back into Nucleus Management, go into Edit Skins. Go into the Main Index for the default skin. Select all and copy, then back out to the Edit Skins page. Create a new skin, name it 'Export.' Paste into the Main Index part of the skin. Now delete everything between
</div><!-- end of the contents div -->
and
</body>
Edit this tag-
<!-- this tag inserts a weblog using the
template named 'output' and -->
<!-- showing 15 entries -->
<%blog(output,all)%>
Where it says "output" replace with whatever you named your new template. Update Skin. Go back to Admin Home. Click Settings under Actions for your Nucleus blog and change the Default Skin to Export. Click Change Settings and then view your now very ugly blog.
Create your import file - in your browser, View Source (some say only Netscape/Mozilla outputs the correct HTML but I was successful with IE). Save the file as import.txt. In your MT directory on your web server, create a new directory named 'import' and upload the text file there. Surf to your mt.cgi page, log in and go to Manage Weblog. Click Import/Export, set your options. Check Import Entries as Me, select Post Status, leave the next two fields blank. And then click Import Entries. If all goes as it should, you will get a page showing a list of your entries being imported into MT. When it's done, hit Back, then Edit Entries to see the results.
Note, it does import all Nucleus line breaks as non-breaking spaces, so paragraphs will have a lot of white space in between. And any images you imbedded will be gone, but the div tag will remain, so you can simply enter the correct URL to get them to show up again.
To the best of my sometimes faulty memory, that is exactly how I got Nucleus to import into MT. I hope it works for you too!
Next entry: Happy (?) Weekend
Previous entry: How Could You?






I just tried this and it worked like a charm. Thank you so much for saving me hours of manual migration!
I have one comment about the step where you create a Main Index for the Export-skin. I copied and pasted the code from the default-skin, but couldn't find the mentioned lines, because I had made heavy modifications on the default skin. So I decided to paste nothing else than the line
<%blog(output,all)%>
into the Main Index-part, and this worked.
By the way, when previewing comments on your blog, the text "MT::App::Comments=HASH(0x812c188) Use of uninitialized value in sprintf at lib/MT/Template/Context.pm line 1187." appears at the bottom of the page. If you would like to avoid that, I recently found a solution to that here: http://www.movabletype.org/support/index.php?s=3987bf02ed731177f1c55951ac1525e0&act=ST&f=7&t=33876&hl;=
Regards,
Xanadu
Posted by Xanadu on 04/22 at 11:24 PM