AW: [opencms-dev] Need Sub-Templates

Frank Wunderlich k.frank.wunderlich at gmx.de
Wed Sep 3 11:15:02 CEST 2003


Hi Achim,

as far as I have understood A.Schirmacher, the key requirement is that
those lists shall be placable at _any_ position within the _bodytext_. 
Using properties and dynamic includes of the list items would certainly
work at any other position on a page but - as far as I see - not within
the wysiwyg content itself.

The concept OpenCms seems to offer for such things are in my humble
opinon HTML-fragments/the HTML-Gallery, as he mentioned.
But this has the disadvantage of mixing content and layout again.

The only way I see is indeed the insertion of placesholders within the
wysiwyg-area.
Using the Sourcecode-Editor is one way, but probably not suitable for
non-techies.
You would have to enhance the Wysiwyg-Editor. The ActiveX-Control offers
functions for pasting things into the edit-area... 

The second issue is the replacement of placeholders when displaying the
page.
You can't use the standard cms:include-tag anymore. You have to get the
content as a string first, parse it and replace your own tags with the
lists that are stored somewhere else (e.g. in separate pages/bodies),
before printing out the result.

Not simple, but possible... :-)

But I would also be keen to read about other design-suggestions...

Greetings,
Frank.


--
Frank Wunderlich
Berlin . Germany
www.frank-wunderlich.de

> -----Ursprüngliche Nachricht-----
> Von: opencms-dev-admin at opencms.org 
> [mailto:opencms-dev-admin at opencms.org] Im Auftrag von Joachim Arrasz
> Gesendet: Mittwoch, 3. September 2003 10:02
> An: opencms-dev at opencms.org
> Betreff: Re: [opencms-dev] Need Sub-Templates
> 
> 
> Hello,
> 
> Marks hint is correct. This is the only way doing things like 
> that. Give your html File a new Property. In the 
> mastertemplate jsp file have a look if this property is set. 
> When its set, make the code for enhancing your document with 
> a list ot what ever you want visible, when not do nothing ... 
> This is the way i do things like that!
> 
> Kind Regards
> 
> Achim
> 
> -- 
> Questions about OpenCMS?
> --> www.opencms-forum.de
> 
> 
> > A. Schirmacher>
> > Mark,
> >
> > the difficulty with including a file using a property
> > is that I can include it only once and only at a
> > predefined position. But when writing an article I
> > would like to include a link list box or a factbox at
> > an arbitrary position in the text. Some articles do
> > not need a factbox, some need one, other need two etc.
> >
> >
> > What I need is a way to include an object or a file
> > from within the body element. Inserting a <% ... %>
> > fragment won't work because it is a .html file, not
> > .jsp, and if I  change the file type to JSP then I
> > can't use the WYSIWYG editor anymore.
> >
> > __________________________________________________________________
> >
> > Gesendet von Yahoo! Mail - http://mail.yahoo.de
> > Logos und Klingeltöne fürs Handy bei http://sms.yahoo.de 
> > _______________________________________________
> > This mail is send to you from the opencms-dev mailing list
> > To change your list options, or to unsubscribe from the 
> list, please 
> > visit http://mail.opencms.org/mailman/listinfo/opencms-dev
> 
> 
> 
> _______________________________________________
> This mail is send to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, 
> please visit http://mail.opencms.org/mailman/listinfo/opencms-dev
> 





More information about the opencms-dev mailing list