<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:m="http://schemas.microsoft.com/office/2004/12/omml" 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 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:"Arial Unicode MS";
panose-1:2 11 6 4 2 2 2 2 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:"\@Arial Unicode MS";
panose-1:2 11 6 4 2 2 2 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></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 lang=NO-BOK link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Hi Davide,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>I think Arturo’s answer is sufficient, really. But details may easily be overlooked in such a long thread.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>From what I remember in this thread, there were some special requirements, which in the end required a custom widget. Maybe that’s a bit overkill for your case.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Please (re)visit my post in that thread: </span><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><a href="http://lists.opencms.org/pipermail/opencms-dev/2013q1/038049.html"><span lang=EN-US>http://lists.opencms.org/pipermail/opencms-dev/2013q1/038049.html</span></a></span><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>The approach I’m talking about here looks like your alternative #1. In my mind, it is (still) the best approach for most situations. It requires maintaining separate category trees per locale, yes, but there is no need for any custom widget or anything like that. It will just work, straight away. And you won’t have to worry about custom stuff breaking down after upgrading to a newer version of OpenCms.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><i><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>PS: If you check out my live example (<a href="http://www.npolar.no/en/news/">http://www.npolar.no/en/news/</a>), try adding a filter, then change language. Keep your eye on the URL and the “cat” parameter while you do this. It shows the actual category path, relative to the “_category” folder in that locale. That’s all you need, really. Of course, you’ll need a JSP to handle the parameter, but that’s it really. The back-end – provided your VFS is structured “correctly”, that is, with _category folders under the locale folders – should work instantly, with the standard category widget displaying categories in the correct language when editing.<o:p></o:p></span></i></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Hope this helps :)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Cheers,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Paul</span><span style='font-size:8.0pt;font-family:"Calibri","sans-serif";color:#365F91'><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> opencms-dev-bounces@opencms.org [mailto:opencms-dev-bounces@opencms.org] <b>On Behalf Of </b>Arturo Martín Lladó<br><b>Sent:</b> 17. mai 2013 13:04<br><b>To:</b> The OpenCms mailing list<br><b>Subject:</b> Re: [opencms-dev] OpenCms 8.5.1 - Multilingual categories Best Practice<o:p></o:p></span></p></div><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><div><div><div><div><p class=MsoNormal style='margin-bottom:12.0pt'>Hi, Davide:<o:p></o:p></p></div><p class=MsoNormal>I suggest you to read the whole following thread: <a href="http://lists.opencms.org/pipermail/opencms-dev/2013q1/038037.html">http://lists.opencms.org/pipermail/opencms-dev/2013q1/038037.html</a><o:p></o:p></p></div><p class=MsoNormal style='margin-bottom:12.0pt'>We faced the same problem and I explained there how we got to solve it.<o:p></o:p></p></div><p class=MsoNormal>Hope it helps.<o:p></o:p></p><div><p class=MsoNormal><br clear=all><o:p></o:p></p><div><p class=MsoNormal>Cheers.<o:p></o:p></p></div><div><p class=MsoNormal><br>--<br>Arturo Martín Lladó<o:p></o:p></p></div><p class=MsoNormal style='margin-bottom:12.0pt'><o:p> </o:p></p><div><p class=MsoNormal>2013/5/17 Cavva <<a href="mailto:davide.cavarretta@gmail.com" target="_blank">davide.cavarretta@gmail.com</a>><o:p></o:p></p><p class=MsoNormal style='margin-bottom:12.0pt'>Hi all,<br><br>I've got a very big issue about multilingual website.<br><br>I need to use Categories and other contents with 2 languages. Categories<br>should be indexed for a solr search too.<br><br>I though some solution:<br>1. use 2 different category tree for each language, but I cannot copy<br>contents from language A to language B;<br>2. use 2 different properties of the category to distinguish 2 languages<br>such Title_A and Title_B, and on the content type I will add a readonly<br>element Category of type CmsString, on save I will fill Category field with<br>Title_A to category A field and Title_B to category B field.<br><br>Do you know best solution to it?<br><br>Thank you all,<br><br>Davide<br><br><br><br>--<br>View this message in context: <a href="http://opencms.996256.n3.nabble.com/OpenCms-8-5-1-Multilingual-categories-Best-Practice-tp23269.html" target="_blank">http://opencms.996256.n3.nabble.com/OpenCms-8-5-1-Multilingual-categories-Best-Practice-tp23269.html</a><br>Sent from the OpenCMS mailing list archive at Nabble.com.<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/cgi-bin/mailman/listinfo/opencms-dev" target="_blank">http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev</a><br><br><br><o:p></o:p></p></div><p class=MsoNormal><o:p> </o:p></p></div></div></div></body></html>