[opencms-dev] Copy site-content link problem
Paul-Inge Flakstad
flakstad at npolar.no
Wed Mar 11 19:05:51 CET 2009
Hi Ludwig
Just offering my immediate thoughts:
1.) If you can manage to somehow accomplish what you want with the "Move" function, try using that one rather than the "Copy" function.
2.) Try setting the "userelativelinks" property in ${OPENCMS_WEBAPP_NAME}/WEB-INF/config/opencms-importexport.xml to "true".
3.) You can always write a script that generates or modifies resources for you (such as the mentioned ttconfig-file).
I'm pretty new at OpenCms, but maybe this gave you some new ideas - good luck. :)
Cheers,
Paul
-----Original Message-----
From: opencms-dev-bounces at opencms.org [mailto:opencms-dev-bounces at opencms.org] On Behalf Of Ludwig Hunecke
Sent: 11. mars 2009 18:33
To: opencms-dev at opencms.org
Subject: [opencms-dev] Copy site-content link problem
Hi all,
I've got a question regarding sites.
Situation:
---------------
Our OpenCms instance is going to run 20-30 different sites. To avoid creating default files for each new site manually (options, column layout, ...), I just want to copy a basic set of files.
So, if I want to create a new site "mysite" I would copy all files under /sites/siteDefaultFiles to /sites/mysite. In siteDefaultFiles there are basic hello- world HTMLs, configuration files etc.
Problem:
---------------
The file /sites/siteDefaultFiles/en/config from type ttconfig references a box in /en/boxes/myBox (relative address).
After copying the config- file OpenCms changed the links from /en/ boxes/myBox to /sites/siteDefaultFiles/en/config.
This is actually not what I want. I want the URL to stay relative or at least to references /sites/mysite/en/config.
I really tried a lot. Copy before creating the mysite, Create mysite and then copy, ... export/import ...
Has anybody got an idea how to handle this?
Thanks a lot!
Ludwig
--
Ludwig Hunecke
Kramerst. 18
D-38122 Braunschweig
Tel.: +49 (151) 14818950
GnuPG Key-ID: 8CEAB267
_______________________________________________
This mail is sent to you from the opencms-dev mailing list To change your list options, or to unsubscribe from the list, please visit http://lists.opencms.org/mailman/listinfo/opencms-dev
More information about the opencms-dev
mailing list