AW: [opencms-dev] Several Bodies in one content page

ralph | m.e.c. ralph at mecmedia.de
Thu Sep 26 18:55:09 CEST 2002


hi,

thanks for your help... worked great! BTW, is there some documentation
on the different xml elements defined in openCMS?
Eduard



-----Ursprüngliche Nachricht-----
Von: owner-opencms-dev at www.opencms.org
[mailto:owner-opencms-dev at www.opencms.org] Im Auftrag von Stephan
Hartmann
Gesendet: Donnerstag, 26. September 2002 14:07
An: opencms-dev at www.opencms.org
Betreff: Re: [opencms-dev] Several Bodies in one content page


Hi, 

you have to define your second body in one of the templates, for example
the 
content template where i suppose you use it. 
.....
<TEMPLATE>

<ELEMENT name="body2"/>
</TEMPLATE>
<ELEMENTDEF name="body2"> <TEMPLATESELECTOR>body2</TEMPLATESELECTOR>
</ELEMENTDEF>
....

The templateselector selects the textbody of your page. if you ommit it
the 
default would be selected.

bye,
Stephan

Am Donnerstag, 26. September 2002 13:19 schrieben Sie:
> Hi,
> I'm new to OpenCMS and trying to come to grips with the template 
> mechanism. The Documentation (and the Userinterface) suggests, that it

> is possible to use several bodies in one Page. My Problem is that when

> I try to insert a second body into the content page via <ELEMENT 
> name="body2"> I get the error "[body2] unknown" although I've edited 
> it into the page over the WYSIWYG-Editor. I abviously have to define 
> this second body in one of the templates, but where? And what is the 
> connection to the page control file, which I've not been able to 
> find....?
>
> thanks,
>
> Eduard




More information about the opencms-dev mailing list