<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><o:SmartTagType
namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="metricconverter"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="PersonName"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
{font-family:Courier;
panose-1:2 7 4 9 2 2 5 2 4 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";
color:black;}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;}
pre
{margin:0cm;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";
color:black;}
span.E-postmall17
{mso-style-type:personal;
font-family:Arial;
color:navy;}
span.E-postmall19
{mso-style-type:personal-reply;
font-family:Arial;
color:navy;}
@page Section1
{size:612.0pt 792.0pt;
margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
{page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body bgcolor=white lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Volkmar, I forgot to add further java
declarations that you require. Try this<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black
face=Courier><span style='font-size:11.0pt;font-family:Courier;color:windowtext'><%@
page session="false"<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black
face=Courier><span style='font-size:11.0pt;font-family:Courier;color:windowtext'> import="org.opencms.jsp.CmsJspActionElement,
<span style='background:silver'>java.util.Locale</span>"%><o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black
face=Courier><span style='font-size:11.0pt;font-family:Courier;color:windowtext'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face=Courier><span
style='font-size:11.0pt;font-family:Courier;color:windowtext'><%@ taglib prefix="cms"
uri="http://www.opencms.org/taglib/cms"%><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face=Courier><span
style='font-size:11.0pt;font-family:Courier;color:windowtext'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face=Courier><span
style='font-size:11.0pt;font-family:Courier;color:windowtext'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black
face=Courier><span style='font-size:11.0pt;font-family:Courier;color:windowtext'> <%<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black
face=Courier><span style='font-size:11.0pt;font-family:Courier;color:windowtext'>CmsJspActionElement
cms = <b><span style='font-weight:bold'>new</span></b>
CmsJspActionElement(pageContext,<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face=Courier><span
style='font-size:11.0pt;font-family:Courier;color:windowtext'> request,
response);<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face=Courier><span
style='font-size:11.0pt;font-family:Courier;color:windowtext'>Locale en = new
Locale(“en”);<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face=Courier><span
style='font-size:11.0pt;font-family:Courier;color:windowtext'>Locale de = new
Locale(“de”);<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face=Courier><span
style='font-size:11.0pt;font-family:Courier;color:windowtext'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face=Courier><span
style='font-size:11.0pt;font-family:Courier;color:windowtext'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face=Courier><span
style='font-size:11.0pt;font-family:Courier;color:windowtext'>
String contenten =
cms.getContent("/test/portal/index.html", "content_area", en);
<br>
String contentde =
cms.getContent("/test/portal/index.html", "content_area", de);
<br>
out.println(contenten);<br>
out.println(contentde);</span></font><font size=2
color=black face=Courier><span style='font-size:11.0pt;font-family:Courier;
color:windowtext'><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face=Courier><span
style='font-size:11.0pt;font-family:Courier;color:windowtext'>%><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face=Courier><span
style='font-size:11.0pt;font-family:Courier;color:windowtext'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>/Felix</span></font><font size=2
color=black face=Courier><span style='font-size:11.0pt;font-family:Courier;
color:windowtext'><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<div>
<div class=MsoNormal align=center style='text-align:center'><font size=3
color=black face="Times New Roman"><span lang=SV style='font-size:12.0pt;
color:windowtext'>
<hr size=3 width="100%" align=center tabindex=-1>
</span></font></div>
<p class=MsoNormal><b><font size=2 color=black face=Tahoma><span lang=SV
style='font-size:10.0pt;font-family:Tahoma;color:windowtext;font-weight:bold'>Från:</span></font></b><font
size=2 color=black face=Tahoma><span lang=SV style='font-size:10.0pt;
font-family:Tahoma;color:windowtext'> opencms-dev-bounces@opencms.org
[mailto:opencms-dev-bounces@opencms.org] <b><span style='font-weight:bold'>För </span></b>Volkmar
Emberger<br>
<b><span style='font-weight:bold'>Skickat:</span></b> den 18 oktober 2006 16:19<br>
<b><span style='font-weight:bold'>Till:</span></b> <st1:PersonName w:st="on">The
OpenCms mailing list</st1:PersonName><br>
<b><span style='font-weight:bold'>Ämne:</span></b> Re: SV: [opencms-dev]
mutlilanguage site</span></font><font color=black><span lang=SV
style='color:windowtext'><o:p></o:p></span></font></p>
</div>
<p class=MsoNormal><font size=3 color=black face="Times New Roman"><span
style='font-size:12.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=3 color=black face="Times New Roman"><span
style='font-size:12.0pt'>thx sami: but I don't want to cut my site into
microsites because of my multiclient capability I would have a site in a site
in a site and that is what I absolutely don't want!<br>
<br>
@felix: I think this is a very newbie mistake but with this testcode:<br>
<br>
6 <%<br>
7 String contenten =
cms.getContent("/test/portal/index.html", "content_area",
"en"); <br>
8 String contentde =
cms.getContent("/test/portal/index.html", "content_area",
"de"); <br>
9 out.println(contenten);<br>
10 out.println(contentde);<br>
11 %><br>
<br>
I get an this error:<br>
javax.servlet.jsp.JspException: Unable to compile class for
JSP<br>
An error occurred at line: <st1:metricconverter
ProductID="6 in" w:st="on">6 in</st1:metricconverter> the jsp file:
/WEB-INF/jsp/offline/system/modules/ch.test.templates/elements/content.tpl.jsp<br>
Generated servlet error:<br>
cms cannot be resolved<br>
<br>
Do I have to specify this link absolut?<br>
<br>
Volkmar<br>
<br>
<br>
Felix Sprick schrieb: <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><u1:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="PersonName"></u1:SmartTagType>You
can also access the content from the scriptlet API. You can do something like
that:<u1:p></u1:p></span></font><o:p></o:p></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><u1:p> </u1:p></span></font><o:p></o:p></p>
<p class=MsoNormal><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>String content = cms.getContent(</span></font><font
size=2 color="#2a00ff" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#2A00FF'>"/[url-to-content-file]</span></font><font
size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>,
</span></font><font size=2 color="#2a00ff" face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:#2A00FF'>"[name of
part you want to include, e.g. “text1”"</span></font><font
size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>,
[locale]);<u1:p></u1:p></span></font><o:p></o:p></p>
<p class=MsoNormal><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'><u1:p> </u1:p></span></font><o:p></o:p></p>
<p class=MsoNormal><font size=2 color="#333399" face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:#333399'>And then print out the
content:<u1:p></u1:p></span></font><o:p></o:p></p>
<p class=MsoNormal><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'><u1:p> </u1:p></span></font><o:p></o:p></p>
<p class=MsoNormal><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>out.println(content);<u1:p></u1:p></span></font><o:p></o:p></p>
<p class=MsoNormal><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'><u1:p> </u1:p></span></font><o:p></o:p></p>
<p class=MsoNormal><font size=2 color="#333399" face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:#333399'>Felix</span></font><o:p></o:p></p>
<u1:p></u1:p>
<div>
<div class=MsoNormal align=center style='text-align:center'><font size=3
color=black face="Times New Roman"><span lang=SV style='font-size:12.0pt'>
<hr size=3 width="100%" align=center tabindex=-1>
</span></font></div>
<p class=MsoNormal><b><font size=2 color=black face=Tahoma><span lang=SV
style='font-size:10.0pt;font-family:Tahoma;font-weight:bold'>Från:</span></font></b><font
size=2 face=Tahoma><span lang=SV style='font-size:10.0pt;font-family:Tahoma'> <a
href="mailto:opencms-dev-bounces@opencms.org">opencms-dev-bounces@opencms.org</a>
[<a href="mailto:opencms-dev-bounces@opencms.org">mailto:opencms-dev-bounces@opencms.org</a>]
<b><span style='font-weight:bold'>För </span></b>Sami Nygard<br>
<b><span style='font-weight:bold'>Skickat:</span></b> den 18 oktober 2006 15:37<br>
<b><span style='font-weight:bold'>Till:</span></b> <st1:PersonName u2:st="on"><st1:PersonName
w:st="on">The OpenCms mailing list</st1:PersonName></st1:PersonName><br>
<b><span style='font-weight:bold'>Ämne:</span></b> Re: [opencms-dev]
mutlilanguage site</span></font><o:p></o:p></p>
</div>
<u1:p></u1:p>
<p class=MsoNormal><font size=3 color=black face="Times New Roman"><span
style='font-size:12.0pt'><u1:p> </u1:p><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 color=black face="Times New Roman"><span
style='font-size:12.0pt'>Hi Volkmar,<br>
<br>
General concept seems to be to use siblings for multilanguage sites and control
the locale in the folder properties.<br>
See this forum entry:<br>
<a href="http://www.opencms-forum.de/opencms-forum/viewthread?thread=1769#4501">http://www.opencms-forum.de/opencms-forum/viewthread?thread=1769#4501</a><br>
<br>
<br>
/Sami<br>
<br>
On Oct 18, 2006 03:13 PM, Volkmar Emberger <info @aggrajag.de="">wrote:<br>
<br>
> Hi there,<br>
> Is there a cms-tag for calling the other page languages in opencms?<br>
> I have pages with free text in 2 different languages and now I want to <br>
> change these by clicking on a link in the frontend.<br>
> <br>
> best regards<br>
> V.Emberger<br>
> <br>
> _______________________________________________<br>
> This mail is sent to you from the opencms-dev mailing list<br>
> To change your list options, or to unsubscribe from the list, please visit<br>
> <a href="http://lists.opencms.org/mailman/listinfo/opencms-dev">http://lists.opencms.org/mailman/listinfo/opencms-dev</a><br>
<br>
<br>
Sami Nygard<br>
Wombat<br>
<br>
<br>
<o:p></o:p></span></font></p>
<u1:p></u1:p></info><pre wrap=""><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt'><o:p> </o:p></span></font></pre><pre
style='text-align:center'><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt'>
<hr size=4 width="90%" align=center>
</span></font></pre><pre><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>_______________________________________________<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>This mail is sent to you from the opencms-dev mailing list<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>To change your list options, or to unsubscribe from the list, please visit<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'><a
href="http://lists.opencms.org/mailman/listinfo/opencms-dev">http://lists.opencms.org/mailman/listinfo/opencms-dev</a><o:p></o:p></span></font></pre></div>
</body>
</html>