[opencms-dev] same content, different template sets?

Olli Aro olli_aro at yahoo.co.uk
Sun Jun 29 15:37:01 CEST 2003


> -----Original Message-----
> From: opencms-dev-admin at opencms.org
> [mailto:opencms-dev-admin at opencms.org]On Behalf Of Alexander Langer
> Sent: 29 June 2003 02:59
> To: Olli Aro
> Subject: Re[2]: [opencms-dev] same content, different template sets?
>
>
> > The easiest is probably to create another template, which is
> exact copy of
> > your content template, but has body replaced with another jsp
> page. This jsp
> > then pulls the body content from where ever you want to pull it
> from. The
> > body content location can be set e.g. by a request parameter or
> opencms page
> > parameter.
>
> I don't want anyone to have to maintain content twice or even more
> often. I'm just looking for a way to let people create content with
> in-site links that stay inside the site and don't lead into another
> site, using the same content but different templates. And I have to
> include the content as html, cause otherwise peple would't be able to
> use the wysiwyg edtitor and that wouldn't make sense.
>

Well, I was kind of thinking that the jsp would use automatically content
from a different place within your content structure - so you would have to
maintain the content only once.

> > Another, but much more complicated, way to do this would be to
> create your
> > own launcher class.
>
> What's that?
>

Launchers are classes, which handle the initial client request, parse the
content based on the intructions from your templates and send the output
back to the client. Have a look at class
com.opencms.launcher.CmsXmlLauncher - it should be possible to replace the
master template with your alternative template based on e.g. request
parameters.

Olli

>
> al
>
> --
> Alexander Langer
> homepage: http://www.al-arenal.de
> mailto: langer at al-arenal.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
> ---
> Incoming mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.490 / Virus Database: 289 - Release Date: 16/06/2003
>
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.490 / Virus Database: 289 - Release Date: 16/06/2003




More information about the opencms-dev mailing list