AW: AW: [opencms-dev] Reason for <edittemplate> in /content/bodys fil es?
Andreas Schouten
Andreas.Schouten at framfab.de
Fri Apr 12 12:19:36 CEST 2002
Hi Stephan,
yes - that is the same situation as described (importing from 4.4.x). Try to
add edittemplates to your default body and it should work.
Regards,
Andreas
-----Ursprüngliche Nachricht-----
Von: Stephan Hartmann [mailto:hartmann at waehrisch-feykes.de]
Gesendet: Freitag, 12. April 2002 12:16
An: opencms-dev at www.opencms.com
Betreff: Re: AW: [opencms-dev] Reason for <edittemplate> in
/content/bodys fil es?
Hi Andreas,
as i have tested it on clean installations of 4.6.0 on linux and win2k with
both mozilla and ie as client and it did not work.
As described i have a file in default_bodys like this:
<?xml version="1.0"?>
<XMLTEMPLATE>
<TEMPLATE/>
<template name="headline">
<![CDATA[Here put your headline.
]]>
</template>
<template name="text"><![CDATA[Here comes text]]></template>
</XMLTEMPLATE>
when i use this in a page and edit it, i get first viewed the default body
which is empty. now when i change to headline body, the content (empty or
whait i put there) of the default body stays in the text area (or wysiwyg
editor) and not the contenet of the headline body is loaded ("Here put your
headline"). In fact it results in overwriting the content.
do i have to put edittemplate tags into my default_bodys templates as well
to
make it work? Well, i could try it.
Bye,
Stephan
Am Freitag, 12. April 2002 11:31 schrieben Sie:
> Hi Stephan, hi Nick,
>
> I haden't noticed your report from 27th of march - sorry about that. A
> better way to report bugs is to use bugzilla:
> http://www.opencms.org/bugzilla/.
>
> Yes you are right - if you update from 4.4.x to 4.6.x and import files
with
> multible bodies the handling is not correct. Creating new files with
> multible bodies in 4.6.x works correct. A simple solution (if you don't
> have too much files with multible bodies to create the edittemplates on
> your own by editiong the /content/bodys/ file. You can simply copy the
> content from one body to the edittemplate.
>
> Now the question - why is everything doubled? The edittemple holds the
> original body you have created. The template body is a jtidy copy of that
> body with special tags (<link> tag). With these <link> tags OpenCms
> controls new features like static export (and lucene search engine in the
> future). If you edit a body the content is got from "edittemplate". If you
> safe the body it contents is stored in edittemplate. After that the
content
> is parsed by jtidy and all links are sourrounded by <link> tags. If you
> view a body the "template" body is used.
>
> I hope that helps,
>
> Andreas
>
> -----Ursprüngliche Nachricht-----
> Von: Stephan Hartmann [mailto:hartmann at waehrisch-feykes.de]
> Gesendet: Freitag, 12. April 2002 09:00
> An: opencms-dev at www.opencms.com
> Betreff: Re: [opencms-dev] Reason for <edittemplate> in /content/bodys
> files?
>
>
> i reported the bug that editing of multiple bodies is not possible on 27th
> of
> march. no response since then.
> hope you have more luck.
>
> bye,
> Stephan
>
> Am Donnerstag, 11. April 2002 23:40 schrieben Sie:
> > I recently upgraded from OpenCms 4.4.6 to 4.6.0.
> >
> > Does anyone know the reason for the existence of
> > <edittemplate> tags in /content/bodys files?
> >
> > They appear to be a duplicate of the <template> tags.
> >
> > This appears to have broken default body files which
> > worked in 4.4.6. In 4.4.6, all you needed to have in
> > default body files were <template name="whatever">
> > tags.
> >
> > This does not allow editing of multiple bodies in
> > 4.6.0, as it did in 4.4.6. In 4.6.0 The body names
> > are visible in the html wysiwyg editor, but changing
> > to a different body does not change to the html of the
> > selected body.
> >
> > TIA,
> > Nick
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Yahoo! Tax Center - online filing with TurboTax
> > http://taxes.yahoo.com/
More information about the opencms-dev
mailing list