[opencms-dev] one content - various presentations

Christian Steinert christian_steinert at web.de
Wed Jul 19 13:46:47 CEST 2006


Roberto Hervella MacĂ­a schrieb:
> Thank you Carl,
> 
> Your method works fine, but it's a bit manual for our purposes. If I understood well, It requires to create manually the sibling content and modify its template every time you create a new content.
> 
> I was looking for something more automatic, i.e., if a user creates a new content (with template 1 associated), it should be created the sibling content (with template 2 associated) in a automatic way.
> 
> Do you know how to do it?
> 
> Thanks in advance,
> 
>     Roberto
> 
Why not use one individual JSP for each content type and hand over the
name of the resource which should be displayed as a parameter? (At
least, if URL parameters are acceptable for you)

Then you call you "template" directly from outside and just tell it
which content it should process.


Christian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3269 bytes
Desc: S/MIME Cryptographic Signature
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20060719/fdd4bba6/attachment.bin>


More information about the opencms-dev mailing list