[opencms-dev] von: EXAPT, Herrn Kratzenberg

info at exapt.de info at exapt.de
Thu Feb 20 16:08:38 CET 2003


Hi,

We migrate from OpenCMS 4.4.0 to 5.0 rc2.
We extracted the exported ZIP File and edited the Files in CONTENT/BODYS
from <template> to
<template /><edittemplate> ...data...</edittemplate>.
We did the same in the <template name...... tags. After that we actualised
the zip archive and imported it.
After opening the files and repeated saving the pages are modified right.
(see below)
Thank you Alex (Note to Chris from 7. Feb. 03)!

But now there are problems with the LINK tags inserted in the <TEMPLATE> by
Opencms:


e. g.:/system/bodies/de/index.htm

<?xml version="1.0" encoding="ISO-8859-1"?>
<XMLTEMPLATE>
    <TEMPLATE><![CDATA[<p> </p>]]></TEMPLATE>
    <editTEMPLATE><![CDATA[<P> </P>]]></editTEMPLATE>
    <template name="image01"><![CDATA[<img
src="]]><LINK><![CDATA[/de/]]><method
name="getServletPath"/><![CDATA[pics/main_pics/bild1.jpg]]></LINK><![CDATA["
>]]></template>
    <edittemplate name="image01"><![CDATA[<IMG src=']]><method
name="getServletPath"/><![CDATA[pics/main_pics/bild1.jpg'>]]></edittemplate>
    <template name="image02"><![CDATA[<img
src="]]><LINK><![CDATA[/de/]]><method
name="getServletPath"/><![CDATA[pics/main_pics/bild2.jpg]]></LINK><![CDATA["
>]]></template>
    <edittemplate name="image02"><![CDATA[<IMG src=']]><method
name="getServletPath"/><![CDATA[pics/main_pics/bild2.jpg'>]]></edittemplate>
    <template name="image03"><![CDATA[<img
src="]]><LINK><![CDATA[/de/]]><method
name="getServletPath"/><![CDATA[pics/main_pics/bild3.jpg]]></LINK><![CDATA["
>]]></template>
    <edittemplate name="image03"><![CDATA[<IMG src=']]><method
name="getServletPath"/><![CDATA[pics/main_pics/bild3.jpg'>]]></edittemplate>
    <template name="image04"><![CDATA[<img
src="]]><LINK><![CDATA[/de/]]><method
name="getServletPath"/><![CDATA[pics/main_pics/bild4.jpg]]></LINK><![CDATA["
>]]></template>
    <edittemplate name="image04"><![CDATA[<IMG src=']]><method
name="getServletPath"/><![CDATA[pics/main_pics/bild4.jpg'>]]></edittemplate>
    <template
                name="inhalt"><![CDATA[<p align="center"><big><strong>EXAPT
auf der <a
href="http://www.exapt.de:8080/opencms/opencms/de/messe.htm">Messe</a></stro
ng> <a href="http://www.exapt.de:8080/opencms/de/messe.htm"></a></big></p>
<hr align="center" width="100%" noshade="noshade" size="1"><p
align="center"><a href="]]><LINK><![CDATA[/de/]]><method

name="getServletPath"/><![CDATA[de/tagungen.htm]]></LINK><![CDATA[">Technisc
he Tagung 2002</a><br>in Frankfurt/Main</p>
<hr align="center" width="100%" noshade="noshade" size="1"><p
align="center"><a href="]]><LINK><![CDATA[/de/]]><method
name="getServletPath"/><![CDATA[de/seminare.htm]]></LINK><![CDATA["><b>Lehrg
änge im<br>1. Halbjahr 2003</b></a></p>
<hr align="center" width="100%" noshade="noshade" size="1"><p
align="center"><b>EXAPT in der<br></b><a
href="]]><LINK><![CDATA[/de/presse.htm]]></LINK><![CDATA[">Presse</a></p>
<hr align="center" width="100%" noshade="noshade" size="1">]]></template>
    <edittemplate
            name="inhalt"><![CDATA[<P align=center><BIG><STRONG>EXAPT auf
der <A
href="http://www.exapt.de:8080/opencms/opencms/de/messe.htm">Messe</A></STRO
NG><A href="http://www.exapt.de:8080/opencms/de/messe.htm">
<P align=center></P>
<HR align=center width="100%" noShade SIZE=1>
</FONT>
<P align=center></A><B></FONT><A href=']]><method
            name="getServletPath"/><![CDATA[de/tagungen.htm'>Technische
Tagung 2002</A><BR>in Frankfurt/Main</B></P>
<P align=center></P>
<HR align=center width="100%" noShade SIZE=1>
</FONT>
<P align=center></P>
<P align=center><A href=']]><method
name="getServletPath"/><![CDATA[de/seminare.htm'><B>Lehrgänge im<BR>1.
Halbjahr 2003</B></A></P>
<P align=center></P>
<HR align=center width="100%" noShade SIZE=1>
</FONT>
<P align=center></P>
<P align=center><B>EXAPT in der<BR></FONT><A
href="presse.htm">Presse</B></BIG></A></P>
<HR align=center width="100%" noShade SIZE=1>]]></edittemplate>
</XMLTEMPLATE>

Veröffentliche Resource(n) ...
Veröffentliche /system/bodies/de/index.htm
Veröffentliche /de/index.htm
Statischer Export, Anzahl der Start-Links ist: 2
Exportiere /de/index.htm
Überspringe /system/bodies/de/index.htm
Exportiere /de//opencms/opencms/pics/main_pics/bild1.jpg
Datei existiert nicht, überspringe Export
Exportiere /de//opencms/opencms/pics/main_pics/bild2.jpg
Datei existiert nicht, überspringe Export
Exportiere /de//opencms/opencms/pics/main_pics/bild3.jpg
Datei existiert nicht, überspringe Export
Exportiere /de//opencms/opencms/pics/main_pics/bild4.jpg
Datei existiert nicht, überspringe Export
Exportiere /de//opencms/opencms/de/tagungen.htm
Datei existiert nicht, überspringe Export
Exportiere /de//opencms/opencms/de/seminare.htm
Datei existiert nicht, überspringe Export
... statischer Export abgeschlossen
... die Resource(n) wurde(n) veröffentlicht


The properties of Picture1 shows the following path in the published
project:
http://svbeho2.exapt.de:8080/opencms/opencms/de//opencms/opencms/pics/main_p
ics/bild1.jpg

This leads to the fact, that the picture cannot be found!

Why does the insertion of the LINK tag occur and especially why CDATA [/de/]
(especially here the /de/?
Where can we alter that? Is getServletPath wrong here?

And now another question: Is it advisable to edit all files because of the
new directory structure also and to replace e. g. /pics... by
/system/galleries/pics etc. for internal, content etc.?

Jürgen Kratzenberg




More information about the opencms-dev mailing list