[opencms-dev] Export trouble
Thomas März
thomasmaerz at gmx.de
Wed Jul 16 15:54:01 CEST 2003
Sven Dittmar <dittmar at rus.uni-stuttgart.de> writes:
> We needed to have to different projects rendering pages with different
> templates but with the same *content*. So one project is the "master",
> the other is the slave.
>
> We did this with the XML-controlcode of the file.
>
> e.g. salve file ist studierende/studium/angebot/studiengaenge/geodaesie.html
>
> but in the controlfile of this file we call
>
> <TEMPLATE>/system/bodies/interessierte/studium/angebot/studiengaenge/geodaesie.html</TEMPLATE>
>
> which points to the master project.
I am trying to do the same and it is working, too, but how did you solve
this problem:
I am using mastertemplates M1 and M2 and have two pages /1/p1 and /2/p1
using M1 resp. M2 but the same template /system/bodies/1/p1.
Now the problem:
I have a link in the content area of page /1/p1 to the page /1/p1/sub_p1
but now I of course do _not_ want to use the same link in /2/p1, the
link in /2/p1 should point to /2/p1/sub_p1, but i does not.
Also using relative links didn't work; I tried using <a href="sub_p1">
but then the exported page linked to
"system/modules/mymodule/jsptemplates/sub_p1".
Any suggestion?
> This works fine for us. Except for the exporting.
>
> I get the following error messages:
>
> [16.07.2003 14:17:50] <opencms_critical>
> com.opencms.core.CmsException: [com.opencms.file.mySql.CmsDbAccess]
> /default/vfs/system/bodies/studierende/studium/angebot/studiengaenge/geodaesie.html
>
> Exception com.opencms.core.CmsException: 2 Not found. Detailed error:
> [com.opencms.file.mySql.CmsDbAccess]
> /default/vfs/system/bodies/studierende/studium/angebot/studiengaenge/geodaesie.html.
> at com.opencms.file.mySql.CmsDbAccess.readFile(CmsDbAccess.java:703)
Did you delete the "not needed" files in /system/bodies?
If there aren't too many you could create them manually.
> And: Are there ways to export the projects as well? The got completly
> lost in older version and I had to set them up manually before
> upgrading to a newer version.
I don't know any way to export the project settings.
Best Regards,
Thomas Maerz
More information about the opencms-dev
mailing list