Import posts from existing blog?

User avatar
Edi
Site Admin
Posts: 1193
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Contact:

Fri Jun 08, 2018 11:03 am

donblanco wrote:
Thu Jun 07, 2018 3:58 pm
These files are from a previous Hugo > Github Pages install. Hugo does a static site generation thing.
The problem is not the import, and the question was: Is there a tool for exporting the data or how can they be exported. There can be found a lot of information of how to import to Hugo, but not how to export.

Because this is not a Bludit related problem please ask the developer of Hugo, if and how this can be done.
Planet Bludit, Tipps, Snippets und nützliche Links. - Newsletter, Informationen zu Bludit (auf Deutsch).
User avatar
LRAM
Sr. Bludit
Posts: 31
Joined: Sat Sep 24, 2016 4:02 pm
Location: France
Contact:

Mon Jun 11, 2018 2:37 pm

Hi
I was using Guppy for years, a french flat files cms, and I would also like to switch to Bludit. I va hundred of articles, i began to do it manually, by splitting my data into several Bludit, but it took a hell of a time :(
User avatar
Edi
Site Admin
Posts: 1193
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Contact:

Mon Jun 11, 2018 3:09 pm

LRAM wrote:
Mon Jun 11, 2018 2:37 pm
I was using Guppy for years, a french flat files cms, and I would also like to switch to Bludit.
Same question: Is there a way to export content from GuppY? In which format is it stored?
Planet Bludit, Tipps, Snippets und nützliche Links. - Newsletter, Informationen zu Bludit (auf Deutsch).
User avatar
Fergo
Jr. Bludit
Posts: 6
Joined: Sat Nov 07, 2015 2:04 am

Mon Jun 11, 2018 10:34 pm

Jumping on this train...

I also intend to port my current website do Bludit. I coded my own CMS at the time so I have the freedom to export it to the format it needs to be. Question is: in order to import it into Bludit, all I have to do is create the folder structures in the content folder with the index.txt (and it's fields) and update the pages.php database? Is there anything else that I need to mess with?

If so, it should be quite straightforward to write a script and convert from my previous custom CMS to Bludit's format.

Thanks!
User avatar
Edi
Site Admin
Posts: 1193
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Contact:

Tue Jun 12, 2018 12:15 am

Fergo wrote:
Mon Jun 11, 2018 10:34 pm
Question is: in order to import it into Bludit, all I have to do is create the folder structures in the content folder with the index.txt (and it's fields) and update the pages.php database?
Yes, this is all that has to be done.

If you have tags and categories this database files also have to be updated.
Planet Bludit, Tipps, Snippets und nützliche Links. - Newsletter, Informationen zu Bludit (auf Deutsch).
User avatar
Fergo
Jr. Bludit
Posts: 6
Joined: Sat Nov 07, 2015 2:04 am

Tue Jun 12, 2018 7:51 pm

Edi wrote:
Tue Jun 12, 2018 12:15 am
Fergo wrote:
Mon Jun 11, 2018 10:34 pm
Question is: in order to import it into Bludit, all I have to do is create the folder structures in the content folder with the index.txt (and it's fields) and update the pages.php database?
Yes, this is all that has to be done.

If you have tags and categories this database files also have to be updated.
Thanks. Two more questions when creating the pages.php database, though:

1) The "md5file" is just the md5 of index.txt?
2) How to generate the "uuid"? EDIT. Nvm, its just md5(uniqid(currtime)). I thought it might be related to something, but it's just some unique identifier.

Thanks!
User avatar
LRAM
Sr. Bludit
Posts: 31
Joined: Sat Sep 24, 2016 4:02 pm
Location: France
Contact:

Thu Jun 14, 2018 1:41 pm

As Guppy is a flat files CSM too, there is no need to export, each articles is already a txt file
User avatar
Edi
Site Admin
Posts: 1193
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Contact:

Thu Jun 14, 2018 2:44 pm

LRAM wrote:
Thu Jun 14, 2018 1:41 pm
As Guppy is a flat files CSM too, there is no need to export, each articles is already a txt file
And where is the database structure? In which format?

Also it depends which data each txt file contains. Text, Markdown, HTML, CSS, links to images etc.?
Planet Bludit, Tipps, Snippets und nützliche Links. - Newsletter, Informationen zu Bludit (auf Deutsch).
Post Reply