Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Movable Type Import 0.4
This has been tried successfully on a couple different MT databases, but has had no exhaustive testing. It would therefore be ill-advised to run this on anything other than a clean new Txp install.
To run the import, open the script in a text editor and fill in database connection values for both the MT database (to export from) and the current Txp database (to import into). They may of course be the same.
Put the script in your /textpattern/
directory and load it in a browser at
yoursite/textpattern/txp_mt_import_04.php
You should see instant feedback on the authors, articles and comments imported.
If something goes wrong, see you back here.
text*
Offline
Re: Movable Type Import 0.4
It seems to have worked well! I have one problem.
I did do the import on a fresh install – so the comment links should have been working just fine.
The <txp:comments_invite /> tag creates results like this:
<a href=”/article/382/#comment”></a> [4]
Could the import have mangled this somehow?
Offline
Re: Movable Type Import 0.4
Ah, it’s because there’s no ‘comment invite’ in the article records.
I’ll fix it, but in the meantime you can run the following sql:
update textpattern set AnnotateInvite = 'Comments';
(change ‘Comments’ to whatever you like [but keep the ‘quotes’]).
text*
Offline
Re: Movable Type Import 0.4
Thank you very much!
Offline
Re: Movable Type Import 0.4
One last thing: if you refine this further, will there be a way to import categories?
Offline
Re: Movable Type Import 0.4
I have several MT weblogs sharing a database, is there a way to restrict this to importing from one blog_id ?
Offline
Re: Movable Type Import 0.4
…added category import in 0.2
…added blog_id filtering in 0.3
text*
Offline
Re: Movable Type Import 0.4
2 things –
Would it be possible to import entries with categories intact on each post?
Also, it looks as though the import brought all the comments on my MT install – about 600 of them belong to my girlfriends blog. Is it possible to set the comment import to only grab them for the entries it’s importing?
Offline
Re: Movable Type Import 0.4
Worked great.
I did want to mention that while selecting by blog_id imported the entries from just that blog, it imported the categories and comments from all the blogs.
Oh yeah,what eVilosity said. It would be great to have the import keep the assigned categories intact.
Offline
Re: Movable Type Import 0.4
> It would be great to have the import keep the assigned categories intact.
I AM TRYING TO MAKE DINNER
:-)
I thought they did – I see now it looks like all the MT mysql dumps I’ve received have an entry_category_id
of NULL for every single article. Is there something about the categorisation schema I’m not seeing?
text*
Offline
Re: Movable Type Import 0.4
Sorry man – in my time zone dinner was ages ago evil grin
Offline
Re: Movable Type Import 0.4
Dinner? Next thing we know you’ll be telling us you have a living to make.
The nerve of some people.
Offline