<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
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: 6 in 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:
<blockquote
cite="mid452B8D61001C8923@pne-smtpout1-sn1.fre.skanova.net%3E%20(added%20by%0D%0A%09postmaster@pne.skanova.net)"
type="cite">
<meta http-equiv="Content-Type" content="text/html; ">
<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="PersonName">
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@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";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;}
span.E-postmall17
{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></o:SmartTagType>
<div class="Section1">
<p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial; color: navy;">You can also
access the content from the
scriptlet API. You can do something like that:<o:p></o:p></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial; color: navy;"><o:p> </o:p></span></font></p>
<p class="MsoNormal" style=""><font color="black" face="Courier New"
size="2"><span
style="font-size: 10pt; font-family: "Courier New"; color: black;">String
content = cms.getContent(</span></font><font color="#2a00ff"
face="Courier New" size="2"><span
style="font-size: 10pt; font-family: "Courier New"; color: rgb(42, 0, 255);">"/[url-to-content-file]</span></font><font
color="black" face="Courier New" size="2"><span
style="font-size: 10pt; font-family: "Courier New"; color: black;">, </span></font><font
color="#2a00ff" face="Courier New" size="2"><span
style="font-size: 10pt; font-family: "Courier New"; color: rgb(42, 0, 255);">"[name
of part you want to include, e.g. “text1”"</span></font><font
color="black" face="Courier New" size="2"><span
style="font-size: 10pt; font-family: "Courier New"; color: black;">,
[locale]);<o:p></o:p></span></font></p>
<p class="MsoNormal" style=""><font color="black" face="Courier New"
size="2"><span
style="font-size: 10pt; font-family: "Courier New"; color: black;"><o:p> </o:p></span></font></p>
<p class="MsoNormal" style=""><font color="#333399" face="Arial"
size="2"><span
style="font-size: 10pt; font-family: Arial; color: rgb(51, 51, 153);">And
then
print out the content:<o:p></o:p></span></font></p>
<p class="MsoNormal" style=""><font color="black" face="Courier New"
size="2"><span
style="font-size: 10pt; font-family: "Courier New"; color: black;"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font color="black" face="Courier New" size="2"><span
style="font-size: 10pt; font-family: "Courier New"; color: black;">out.println(content);<o:p></o:p></span></font></p>
<p class="MsoNormal"><font color="black" face="Courier New" size="2"><span
style="font-size: 10pt; font-family: "Courier New"; color: black;"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font color="#333399" face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial; color: rgb(51, 51, 153);">Felix</span></font><font
color="navy" face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial; color: navy;"><o:p></o:p></span></font></p>
<div>
<div class="MsoNormal" style="text-align: center;" align="center"><font
face="Times New Roman" size="3"><span style="font-size: 12pt;"
lang="SV">
<hr tabindex="-1" align="center" size="3" width="100%"></span></font></div>
<p class="MsoNormal"><b><font face="Tahoma" size="2"><span
style="font-size: 10pt; font-family: Tahoma; font-weight: bold;"
lang="SV">Från:</span></font></b><font face="Tahoma" size="2"><span
style="font-size: 10pt; font-family: Tahoma;" lang="SV">
<a class="moz-txt-link-abbreviated" href="mailto:opencms-dev-bounces@opencms.org">opencms-dev-bounces@opencms.org</a>
[<a class="moz-txt-link-freetext" 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
w:st="on">The OpenCms mailing list</st1:PersonName><br>
<b><span style="font-weight: bold;">Ämne:</span></b> Re:
[opencms-dev]
mutlilanguage site</span></font><span lang="SV"><o:p></o:p></span></p>
</div>
<p class="MsoNormal"><font face="Times New Roman" size="3"><span
style="font-size: 12pt;"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font face="Times New Roman" size="3"><span
style="font-size: 12pt;">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 class="moz-txt-link-freetext" 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 class="moz-txt-link-freetext" 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>
<o:p></o:p></info></span></font></p>
</div>
<pre wrap="">
<hr size="4" width="90%">
_______________________________________________
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
<a class="moz-txt-link-freetext" href="http://lists.opencms.org/mailman/listinfo/opencms-dev">http://lists.opencms.org/mailman/listinfo/opencms-dev</a></pre>
</blockquote>
</body>
</html>