AW: [opencms-dev] Wasteful saving in /system/bodies

Michael Emmerich Michael.Emmerich at framfab.de
Mon Dec 16 16:23:10 CET 2002


Hello Thomas,

no, this is not an error, this is a feature of OpenCms.

The content in the <TEMPLATE> tag is used to generate the output of the page
while the content in the <edittemplate> tag is the one you will edit with
the editor.
Why the two templates? To use the link managment, the system must mark all
links and images with the <link> tag - but you do not want to see those when
you edit the content. Therefore the content of the <TEMPLATE> tag is
automatically generated while saving the page where all links are modified
with link tags.

Add an internal link to a page and then take a look at the content of the
template tag.

Regards,
Michael Emmerich

OpenCms Professional Services
Framfab Deutschland AG
http://www.framfab.de
http://opencms.framfab.de



-----Ursprüngliche Nachricht-----
Von: Thomas Gick [mailto:thomasgick at web.de]
Gesendet: Montag, 16. Dezember 2002 16:01
An: opencms-dev at opencms.com
Betreff: [opencms-dev] Wasteful saving in /system/bodies


Hi list,

if i create a page and look into the corresponding /system/bodies file, 
i see 2 CDATA sections with the exact same content of my body.
Look here:

<?xml version="1.0" encoding="utf-8"?>
<XMLTEMPLATE>
    <TEMPLATE><![CDATA[sampletext]]></TEMPLATE>
    <edittemplate><![CDATA[sampletext]]></edittemplate>
</XMLTEMPLATE>

-----

In bigger sites this seems to be wasteful.
Is this an error?

Thomas

I use openCMS 5.0beta2
____________________________________________________________________________
__
Keine Lust, immer Ihre Adressdaten in eine E-Mail zu schreiben? Mit der
vCard ist Schluss damit! Infos - http://freemail.web.de/features/?mc=021153



More information about the opencms-dev mailing list