[opencms-dev] Set a property (the locale) whithin a template

Christian Steinert christian_steinert at web.de
Sat Aug 26 12:19:09 CEST 2006


Jan Meier schrieb:
> Hello,
> 
> I want to set the locale property within my template. For example if a user 
> enters index.html?lang=de the locale property should be set to "de". I know 
> about the option index.html?__locale=de but this is not an option for me, 
> because it is too complicated to recognize.
> 
> How can I set a property within my template?
> 
> Regards 
> 
> Jan

have your tried request.setAttribute("__locale","de") before you do any opencms-related things in your template?
I don't know if this works, but it's worth a try.

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/20060826/0be2076e/attachment.bin>


More information about the opencms-dev mailing list