[opencms-dev] OpenCms 8.5.1 - Multilingual categories Best Practice

Paul-Inge Flakstad flakstad at npolar.no
Tue May 21 10:19:44 CEST 2013


Hi Davide,

I think Arturo's answer is sufficient, really. But details may easily be overlooked in such a long thread.

>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.

Please (re)visit my post in that thread: http://lists.opencms.org/pipermail/opencms-dev/2013q1/038049.html.

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.

PS: If you check out my live example (http://www.npolar.no/en/news/), 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.

Hope this helps :)

Cheers,
Paul

From: opencms-dev-bounces at opencms.org [mailto:opencms-dev-bounces at opencms.org] On Behalf Of Arturo Martín Lladó
Sent: 17. mai 2013 13:04
To: The OpenCms mailing list
Subject: Re: [opencms-dev] OpenCms 8.5.1 - Multilingual categories Best Practice

Hi, Davide:
I suggest you to read the whole following thread: http://lists.opencms.org/pipermail/opencms-dev/2013q1/038037.html
We faced the same problem and I explained there how we got to solve it.
Hope it helps.

Cheers.

--
Arturo Martín Lladó

2013/5/17 Cavva <davide.cavarretta at gmail.com<mailto:davide.cavarretta at gmail.com>>
Hi all,

I've got a very big issue about multilingual website.

I need to use Categories and other contents with 2 languages. Categories
should be indexed for a solr search too.

I though some solution:
1. use 2 different category tree for each language, but I cannot copy
contents from language A to language B;
2. use 2 different properties of the category to distinguish 2 languages
such Title_A and Title_B, and on the content type I will add a readonly
element Category of type CmsString, on save I will fill Category field with
Title_A to category A field and Title_B to category B field.

Do you know best solution to it?

Thank you all,

Davide



--
View this message in context: http://opencms.996256.n3.nabble.com/OpenCms-8-5-1-Multilingual-categories-Best-Practice-tp23269.html
Sent from the OpenCMS mailing list archive at Nabble.com.
_______________________________________________
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/cgi-bin/mailman/listinfo/opencms-dev



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20130521/0e9a815d/attachment.htm>


More information about the opencms-dev mailing list