Foren

Friendly url multiple language

gerald hemmers, geändert vor 11 Jahren.

Friendly url multiple language

Junior Member Beiträge: 93 Beitrittsdatum: 13.05.08 Neueste Beiträge
Hi All,

I found the following problem and i think i'm missing a configuration setting. I have setup a portal with multiple pages, I have configured a standard language and de friendly url in my standard language.

Let's say i have a page with a friendly url /news.
All my news is multilanguage.... so form example in Dutch ' news' is called ' nieuws'

Is it possible to create a friendly url for the menu 'news' in the english version of the menu item and a friendly url 'nieuws' for the dutch menu item.

How good i configure this?

Thanks a lot for your time!

Greets, Gerald.
thumbnail
Dominik domih, geändert vor 11 Jahren.

RE: Friendly url multiple language

Junior Member Beiträge: 57 Beitrittsdatum: 10.11.08 Neueste Beiträge
You could try to create a page with type URL. Name the page "nieuws" and set the url to the english news page and append a GET param like ...&struts_action=%2Flanguage%2Fview&languageId=cs_CZ ....

Btw, I got the param from the languages portlet.
thumbnail
Sampsa Sohlman, geändert vor 11 Jahren.

RE: Friendly url multiple language

Regular Member Beiträge: 230 Beitrittsdatum: 27.09.07 Neueste Beiträge
Hi

gerald hemmers:
I found the following problem and i think i'm missing a configuration setting. I have setup a portal with multiple pages, I have configured a standard language and de friendly url in my standard language.

Let's say i have a page with a friendly url /news.
All my news is multilanguage.... so form example in Dutch ' news' is called ' nieuws'


This was dicussed also couple of years ago https://www.liferay.com/community/forums/-/message_boards/message/4294015

gerald hemmers:
Is it possible to create a friendly url for the menu 'news' in the english version of the menu item and a friendly url 'nieuws' for the dutch menu item.

How good i configure this?


You could use Liferay site's per language and then define with simple Hook the used language for your site. This will bring a burden to have many sites per language, but basically you can have own domain names for them.

I'm also developing custom solution for this, but I have not released it yet.
gerald hemmers, geändert vor 11 Jahren.

RE: Friendly url multiple language

Junior Member Beiträge: 93 Beitrittsdatum: 13.05.08 Neueste Beiträge
Thanks for the options. this will give me a solution to implement it.

It is not perfect but this will work.

Greets, gerald
gerald hemmers, geändert vor 11 Jahren.

RE: Friendly url multiple language

Junior Member Beiträge: 93 Beitrittsdatum: 13.05.08 Neueste Beiträge
Sampsa Sohlman:

I'm also developing custom solution for this, but I have not released it yet.


I'm very interested in your custom solution. DO you have any plan to release it to the liferay app store? Maybe we can help with the development.

greets, gerald
thumbnail
Sampsa Sohlman, geändert vor 11 Jahren.

RE: Friendly url multiple language

Regular Member Beiträge: 230 Beitrittsdatum: 27.09.07 Neueste Beiträge
I'm modifying 6.1.x branch. There are changes on example some core LR classes like PortalImpl, PortalInstances and those cannot be hooked so as plugin it would need to be ext-plugin. The implementation also makes some current Liferay 6.1.x features as obsolete. I'm calling feature SiteUrl and it basically replaces current VirtualHost and I18Servlet functionality. It is working, but some link generation is not done yet, so you have to wait for a while.

I'm going to update my personal portal top of that customized LR version, so there will be a demo emoticon and I'm going to make improvement issue also to Liferay Jira.