[opencms-dev] How to migrate (website) content to OpenCMS

Gerd Schrick mail at schrick-design.de
Sat May 5 00:07:21 CEST 2018


Hi Stephan,

thanks a lot for your answer!
It really got me unstuck :-)

Is there also a possibility to provide properties (title, navTitle, resourceType, ...) to the files to import with the option you described (fs->zip->upload) - I asume not.
Correct?

But your answer regarding the link/reference resolving encouraged me to play around with the Admin->DB export/import feature and first simple tests look very promising. Idon't even need to provide a uuid in the link element to get it resolved correctly; same for refs in container page to the content.
(will try in my next OCMS session) But do you know if this will also work when I don't provide uuids for the files/folders in the zip's manifest?

Best regards,
Gerd

Am 4. Mai 2018 20:47:42 MESZ schrieb Stephan Schrader <zstephanz at gmail.com>:
>Hi Gerd,
>
>---- Gerd Schrick schrieb ----
>
>> Dear List,
>> 
>> I'd like to migrate some websites to OpenCMS (version 10.5.3) but I'm
>still stuck with how to import the content.
>> The sites have up to 5000 pages (some in 3 languages).
>> 
>> All I've found refers to old OCMS versions with xmlpages but nothing
>found about current container page technology.
>> Won't believe that noone hasn't already done a migration to OCMS.
>> Or maybe it's so obvious and I've just overlooked something.
>> I really hope to get some helpful hints on how to proceed with this.
>> 
>> 
>> It's obvious that I've to prepare/preprocess the existing data (files
>and structure) ...
>> As the templating will be simple (first), so I'll have to generate
>one container page and one xmlcontent file per source page. That seems
>straight forward with Apache Ant and XSLT.
>> 
>> BUT (the biggest questions):
>> 
>> 1. how to get the (prepared) data into OCMS?
>> - CIFS (network share) seems perfect first, but what about the
>references/uuis (see also 2. below)? (as they seem to be assigned
>autmatically on file creation I can't use them as reference before in
>the preparation process)
>
>CMIS or 
>
>1. Store content on disk 
>2. Zip the root folder 
>3. Upload the Zip with the usual Explorer upload and check "extract
>zip" 
>
>> - directly to the database tables? (what to put where? Is there some
>documentation about the data structure and dependencies?)
>
>Don't do this! 
>
>> - as a module?
>
>Don't Import content with a module! 
>
>> 
>> 2. how to manage the references?
>> container page -> xmlcontent; internal links; external links (in
>gallery); images/binaries (in galleries); other?
>> These seem to be uuids ...
>> - do I have to generate them or is there a functionality in OCMS that
>will resolve (relative/internal) urls, and if so when?
>
>Yes there is an admin tool to restore relations. Just create new uuids
>every time and make sure the path inside the content is current. You
>will find the tool under Administration - Content Tools - Repair XML
>Content. 
>
>Good luck 
>Stephan 
>
>> - if I've to generate them: have these uuids some special
>logic/format?
>> - links in content are somehow "extracted" to a links-element -
>what's the logic/fomat here / what must be generated?
>> 
>> 
>> Big thank you for any helpful answer!
>> 
>> Best regards,
>> Gerd
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20180505/ac0de52e/attachment.htm>


More information about the opencms-dev mailing list