Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2004-02-29 14:59:35

Dean
Founder (Gone, but not forgotten)
From: Languedoc
Registered: 2004-02-14
Posts: 235
Website

Movable Type Import 0.4

Is available to try out

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

#2 2004-02-29 15:57:05

Jennifer
Member
From: Michigan
Registered: 2004-02-25
Posts: 74
Website

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

#3 2004-02-29 16:03:25

Dean
Founder (Gone, but not forgotten)
From: Languedoc
Registered: 2004-02-14
Posts: 235
Website

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

#4 2004-02-29 16:08:46

Jennifer
Member
From: Michigan
Registered: 2004-02-25
Posts: 74
Website

Re: Movable Type Import 0.4

Thank you very much!

Offline

#5 2004-02-29 16:10:13

Jennifer
Member
From: Michigan
Registered: 2004-02-25
Posts: 74
Website

Re: Movable Type Import 0.4

One last thing: if you refine this further, will there be a way to import categories?

Offline

#6 2004-02-29 16:16:52

Al
Member
From: Deep in the north woods
Registered: 2004-02-24
Posts: 20
Website

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

#7 2004-02-29 16:52:14

Dean
Founder (Gone, but not forgotten)
From: Languedoc
Registered: 2004-02-14
Posts: 235
Website

Re: Movable Type Import 0.4

…added category import in 0.2

…added blog_id filtering in 0.3


text*

Offline

#8 2004-02-29 18:43:59

eVilosity
New Member
From: Halifax, NS
Registered: 2004-02-26
Posts: 7
Website

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

#9 2004-02-29 19:25:22

Al
Member
From: Deep in the north woods
Registered: 2004-02-24
Posts: 20
Website

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

#10 2004-02-29 19:35:29

Dean
Founder (Gone, but not forgotten)
From: Languedoc
Registered: 2004-02-14
Posts: 235
Website

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

#11 2004-02-29 19:41:10

eVilosity
New Member
From: Halifax, NS
Registered: 2004-02-26
Posts: 7
Website

Re: Movable Type Import 0.4

Sorry man – in my time zone dinner was ages ago evil grin

Offline

#12 2004-02-29 19:43:29

Al
Member
From: Deep in the north woods
Registered: 2004-02-24
Posts: 20
Website

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

Board footer

Powered by FluxBB