GetSimple Support Forum
QUESTION Massiv Static Content Import - Printable Version

+- GetSimple Support Forum (http://get-simple.info/forums)
+-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3)
+--- Forum: General Questions and Problems (http://get-simple.info/forums/forumdisplay.php?fid=16)
+--- Thread: QUESTION Massiv Static Content Import (/showthread.php?tid=10608)



Massiv Static Content Import - nh3oh - 2018-10-18

Hi!

As a new GS user, I'm asking about :

How to import (many) HTML contents without the need of GS gui to create/edit each page one by one ?

Before asking here, I've been searching the wiki and the forum without answer.

I've tried to directly create/edit XML file in ./data/pages/

Then when I go back to the gui,
I can see the new page in the list
but a banner says "the page do not exist"
and there is no way to edit it from here.

Something (security?) is blocking that way to add contents,
is there some way to override that ?

Thanks for help.


RE: Massiv Static Content Import - Carlos - 2018-10-18

You have to delete data/other/pages.xml, or make any update on any page (even with no changes), so that the page index is refreshed.


RE: Massiv Static Content Import - nh3oh - 2018-10-18

@Carlos,

Thanks for help

I don't know what is wrong but neither deleting data/other/pages.xml or editing other page,
has fixed the error banner / unblocking the page Sad(

Where should I look up now ?


RE: Massiv Static Content Import - Carlos - 2018-10-18

Are you sure that the page xml file has been properly created? Has it got all required fields, like <url>slug</url>?


RE: Massiv Static Content Import - nh3oh - 2018-10-18

I don't know what was wrong, but I've deleted the first intend and redo some new xml file by the same way (copying + editing existent one) and now it works.

Carlos, thanks again for your help.

Do you know if there is some plugin to manage this kind of imports ?


RE: Massiv Static Content Import - Carlos - 2018-10-19

(2018-10-18, 07:37:33)nh3oh Wrote: Do you know if there is some plugin to manage this kind of imports ?

I don't know, sorry. But I think there isn't any.

[edit] I found this: http://get-simple.info/forums/showthread.php?tid=747
But the script is no longer available Undecided

[edit2] The script can be found here: http://web.archive.org/web/20150414094935/http://www.brandonchecketts.com/downloads/getsimple_import_file.php
(But maybe it's not what you're looking for)


RE: Massiv Static Content Import - shawn_a - 2018-10-19

I added some experimental thing in 3.4 to allow copy renaming files, and it will auto rewrite the xml to match filename.
Is that what you mean ?