Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-12-28 20:23:23

jcr4runner
Member
From: Kissimmee, Florida
Registered: 2007-12-28
Posts: 18
Website

Converting html or text files into the TextPattern CMS

I have an html based site that is over 2000 pages.

It’s mainly articles.

I am looking for an easy way to convert to entire site into the Textpattern CMS.

I just need the original file name and the text to show up in the proper fields. I can add titles, dates, authors fields separately.

About ten years ago, I converted the site with a free ware program called text to html. I just put rtf files into folders and the program generated a site with a hierarchy and menu pages.

Now I want to put the site into a content management system without havng to cut and paste 2000 articles int the proper fields.


My published books on Lulu: http://lulu.com/spotlight/forerunner

Offline

#2 2007-12-31 16:37:16

AndrijaM
Member
From: Belgrade, Serbia
Registered: 2007-12-22
Posts: 190
Website

Re: Converting html or text files into the TextPattern CMS

As far as I know, first you have to build you html/css site (which you already have),
and then use txp forms, pages, sections etc. to convert your site in txp CMS.

There is no easy way. If it would be that easy, just one button click, I think this forum would not exist.

Offline

#3 2008-01-02 10:49:50

libre fan
Member
From: Cévennes, France
Registered: 2007-09-21
Posts: 10
Website

Re: Converting html or text files into the TextPattern CMS

At least you can export your content as sql, open the huge file in a text editor like Geany (Linux), and make changes from html to textile (through “find and replace”)

The worst part is updating the internal links…. you need to cut and paste all your content and then update each internal link, I think. I’m glad i only have over a 100 articles.


libre fan
Libres-Ailé(e)s (LUG: pour Linux et le monde du LIbre, Cévennes, France)
Libre-Fan going over to Textpattern :-)

Offline

#4 2008-01-02 11:10:10

jstubbs
Member
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

Re: Converting html or text files into the TextPattern CMS

Or use find and replace to remove only the absolute URL portion of the link. Best to always use relative links.

Offline

#5 2008-01-02 12:07:42

libre fan
Member
From: Cévennes, France
Registered: 2007-09-21
Posts: 10
Website

Re: Converting html or text files into the TextPattern CMS

jstubbs wrote:

Or use find and replace to remove only the absolute URL portion of the link. Best to always use relative links.

I wish I could do that but in fact when you move to another CMS I don’t think you get the same type of relative links even with clean URL


libre fan
Libres-Ailé(e)s (LUG: pour Linux et le monde du LIbre, Cévennes, France)
Libre-Fan going over to Textpattern :-)

Offline

#6 2008-01-02 14:27:36

maverick
Member
From: Southeastern Michigan, USA
Registered: 2005-01-14
Posts: 976
Website

Re: Converting html or text files into the TextPattern CMS

jcr4runner

If you have a way to put your content into MT Import/Export Format, it might automate the data entry of your content. However it might take more work putting it into that format than copying/pasting, or some other method. Thought I’d share the link just in case it might help.

Last edited by maverick (2008-01-02 14:27:53)

Offline

#7 2008-01-02 17:13:13

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

Re: Converting html or text files into the TextPattern CMS

Here’s an example of converting html into the MT format:
http://www.papascott.de/archives/2002/12/23/creating-an-mt-import-file-from-html/

Offline

Board footer

Powered by FluxBB