[opencms-dev] diverses

Stephan Hartmann hartmann at nads.de
Wed Jun 7 11:12:48 CEST 2000


It works!

This makes OpenCms much more usable for more complex templates.
One thing: if i choose a template with two or more elements of this type and
only edit the default text body, the others get the same content.
But i think this will be fixed in one of the next releases, when the bodies
to be edited will appear automatically in the dropbox.

Now i have some requests: It would be great to have more types of elements
to be added to a template like images and hyperlinks.
Maybe like this:
<ELEMENT name="Bild1" type="image"/>
<ELEMENT name="Link1" type="hyperlink"/>

So long thanks for the good work

Stephan

-----Ursprüngliche Nachricht-----
Von: Lucas, Alexander <Alexander.Lucas at framfab.de>
An: 'opencms-dev at www.opencms.com' <opencms-dev at www.opencms.com>
Datum: Mittwoch, 7. Juni 2000 09:40
Betreff: AW: [opencms-dev] diverses


>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