AW: [opencms-dev] diverses

Lucas, Alexander Alexander.Lucas at framfab.de
Wed Jun 7 09:33:30 CEST 2000


Stephan,

there is a new feature concerning your template selector
problem since OpenCms version 4.0.29.

Add the following ELEMENTDEF definition to your template
file, outside any <TEMPLATE> element:

<ELEMENTDEF name="text1">
	<TEMPLATESELECTOR>secondBody</TEMPLATESELECTOR>
</ELEMENTDEF>

The missing <CLASS> and <TEMPLATE> definition will then
be taken from the ELEMENTDEF of the main body
defined in the control file of your page.

I think this is just the thing you are missing, isn't it?

However, in the editor view you still have to create the
new template section "secondBody" manually by clicking
"New Body". Then, a new body named "body1" will be created.
You can (since 4.0.29) rename this body to "secondBody".

Attention: You must not use "script" as the new name for
the body. This ist a reserved keyword for a new feature
coming soon.

Best regards

Alexander Lucas
mailto:alexander.lucas at framfab.de


> > ich würde gerne Templates erzeugen, die neben dem 
> Standard-Element "body"
> > mehrere editierbare Elemente enthalten, so dass beim 
> Erstellen einer neuen
> > Seite, die dieses Template verwendet, direkt die dazugehörigen
> > <ELEMENTDEF>-Einträge (mit dazugehörigem 
> <TEMPLATESELECTOR>-Tag) in der
> > Steuerdatei erzeugt werden, wie es gerade bei dem 
> Standard-Body-Element
> der
> > Fall ist.
> >
> > Ist das bereits möglich? Oder wird dieses Elementare Feature bald
> > implementiert?
> >
> > Bisher gehe ich so vor:
> > Im Template gibt es neben dem "body"-Element noch andere 
> Elemente, z.B.
> > "text1":
> > ....
> > <table>
> > <tr><td>]]><ELEMENT name="body"/><![CDATA[</td><td>dieser 
> Text ist nicht
> > editierbar</td><td>]]><ELEMENT name="text1"/>
> > <![CDATA[</td></tr></table>
> > ...



More information about the opencms-dev mailing list