[opencms-dev] A newcommer to OpenCMS.. some cuestion
Philip Kuegler
mailinglists at pcom.at
Fri Oct 31 23:37:15 CET 2008
Hi Rolando,
openCMS is using the request header sent by the users browser to
identify the users language. This language is then assumed as the
default one. The architecture of the system does assume that you put
different language versions of your files in different folders (e.g.
there is a folder "mysite/en/*all files*" and "mysite/de/*all files*").
You can then easily switch languages by sending the user to the specific
folder. As I'm not using the template one (or two) framworks I can't
tell you where to set the language in these classes but I can tell you
how it works:
When querying for content the base classes do accept a specific language
parameter which is then used to match content. Such a call does look
like this:
new CmsJspTagContentLoad(null, getJspContext(), collectorName,
collectorParam, null, null, getRequestContext().getLocale(),
CmsDirectEditMode.MANUAL);
For further information you can take a look at following pages:
http://mail.opencms.org/pipermail/opencms-dev/2008q4/030850.html
http://www.opencms-forum.de/opencms-forum/viewthread?thread=2520#6308
http://www.opencms-forum.de/opencms-forum/viewthread?thread=2742#6888
http://www.opencms-forum.de/opencms-forum/index
http://www.opencms-wiki.org/Main_Page
http://www.opencms-wiki.org/Switch_between_languages
br,
Philip
Rolando Miranda Dominguez wrote:
> I'm new developer-user in openCMS i'm publishing a site
> containing around 30 pages in 3 languages ... mainly html content
> When I try to make a new static content in openCMS and edit it find
> that the editor let me in the same page to put the content in
> the 3 langs ( see the picture).
>
>
>
> When navigate the site and in the openCMS "demos" i don't find how to
> switch the language( locale) like traditional sites... or the way
> it's happen
> programing whit Struts or Spring web Framework s
> Exploring the doc and the Network i found how to now the current
> language(or locale of navigation )
> It is possible in a JSP page to set some attribute to the openCMS to
> do that.. ??
> it is a wrong concep thats way ??
>
> Thanks in advanced
> Rolando
>
> ------------------------------------------------------------------------
>
>
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/mailman/listinfo/opencms-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20081031/2b32fd94/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/jpeg
Size: 6562 bytes
Desc: not available
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20081031/2b32fd94/attachment.jpe>
More information about the opencms-dev
mailing list