Fórum

Linking a localized page with VM template

thumbnail
Alfredo Larotonda, modificado 12 Anos atrás.

Linking a localized page with VM template

Junior Member Postagens: 84 Data de Entrada: 18/06/08 Postagens Recentes
I have a problem with Velocity template.
My site has an English version and an Italian version. The problem is:

1. I created a journal structure with a "Link to Page" element:
2. I created a VM template with "$linkToPage.getUrl()" ;
3. I created an article with the previously created structure & template and it results that the link always goes to the English version of the page.

It seems that with a link to page element is impossible to link a localized version of a page.
Anyone has an idea to resolve this issue ?

Thanks a lot

Alfredo
thumbnail
Ravi Kumar Gupta, modificado 12 Anos atrás.

RE: Linking a localized page with VM template

Liferay Legend Postagens: 1302 Data de Entrada: 24/06/09 Postagens Recentes
Can you please check this
#language(LANGUAGE_KEY) Prints out the language string related to the LANGUAGE_KEY.
This replaces the following functionality:
$languageUtil.get($company.getCompanyId(), $locale, LANGUAGE_KEY)

Source: http://content.liferay.com/4.3/misc/theme-api-4.3.0.html
thumbnail
Ravi Kumar Gupta, modificado 12 Anos atrás.

RE: Linking a localized page with VM template

Liferay Legend Postagens: 1302 Data de Entrada: 24/06/09 Postagens Recentes