Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-02-15 10:35:38

empiryk
Member
From: Andrychów/Kraków [Poland]
Registered: 2007-01-23
Posts: 43
Website

import from NucleusCMS into TXP ... success and some failure

My good frined is a programmer.
He was so kind and wrote for me an exporter from Nucleus into MT format, which is next used as a input for TXP importer. Import from MT file into TXP is proceeded via movable type script (don’t ask why?)

And this way of import works good enough – all content from NucleusCMS is imported: items (articles), categories and comments.

But … there is strange fenomena in TXP: admin / content / categories i don’t see names of imported categories, but I see numbers of items in given category, see screen:
http://empiryk.republika.pl/txp/txp_kategorie_0.png (see red frame)

If I click on number of items in given category I see valid, true name of the category, see screen:
http://empiryk.republika.pl/txp/txp_kategorie_1.png (watch red arrow)

1. question – how to fix this?

Morever – now on front page of TXP stop working: txp:category_list and txp:category1 class=“jeden” link=“y” title=“1” section=“article” this_section=“1”

2. question – how to fix this?

Any tips will be appreciated. Thx in advance.


[ I apologize for my poor english ]

Offline

#2 2007-02-15 11:31:25

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: import from NucleusCMS into TXP ... success and some failure

It looks like your categories have “names” but not “titles”, which is what the category edit links are built with (unfortunately this possibility has not been accounted for).

You should be able to do the following, which will allow you to edit each one and give them all a title:

1. Open up the file include/txp_category.php.

2. Find line 295, which should look like this:

eLink('category', 'cat_'.$event.'_edit', 'id', $id, $title).sp.small($count)

3. Change it to this:

eLink('category', 'cat_'.$event.'_edit', 'id', $id, 'edit').sp.small($count)

4. Save the file, then refresh the category page. You should now be able to click on each one to edit it.

You’ll want to reverse the above instructions to put things back as they were. I’ll make sure this gets fixed for the next release of Textpattern.

Offline

#3 2007-02-15 13:16:13

empiryk
Member
From: Andrychów/Kraków [Poland]
Registered: 2007-01-23
Posts: 43
Website

Re: import from NucleusCMS into TXP ... success and some failure

Mary wrote:

You’ll want to reverse the above instructions to put things back as they were. I’ll make sure this gets fixed for the next release of Textpattern.

Thx very much. Your fix works fine.


[ I apologize for my poor english ]

Offline

#4 2007-02-15 16:10:10

hcgtv
Archived Plugin Author
From: Key Largo, Florida
Registered: 2005-11-29
Posts: 2,722
Website

Re: import from NucleusCMS into TXP ... success and some failure

empiryk wrote:

My good frined is a programmer.
He was so kind and wrote for me an exporter from Nucleus into MT format, which is next used as a input for TXP importer. Import from MT file into TXP is proceeded via movable type script (don’t ask why?)

Hey, that’s cool, would you mind sharing this?

Offline

#5 2007-02-15 16:16:24

empiryk
Member
From: Andrychów/Kraków [Poland]
Registered: 2007-01-23
Posts: 43
Website

Re: import from NucleusCMS into TXP ... success and some failure

hcgtv wrote:

Hey, that’s cool, would you mind sharing this?

Yes, I will put on the web the exporter script and description of use. In next few days (this weekend maybe).


[ I apologize for my poor english ]

Offline

#6 2007-02-15 17:14:54

hcgtv
Archived Plugin Author
From: Key Largo, Florida
Registered: 2005-11-29
Posts: 2,722
Website

Re: import from NucleusCMS into TXP ... success and some failure

empiryk wrote:

Yes, I will put on the web the exporter script and description of use. In next few days (this weekend maybe).

Great, I need to import a couple of blogs into different sites. Since switching to Textpattern from Nucleus, I have content sitting in databases waiting for a home.

Offline

Board footer

Powered by FluxBB