structure:pageUrlAfterLanguageChange

This tag will get you a url to the current infoglue page but with a new language parameter.

Parameters

Name

Required

Default

Type

Description

Id

true

 

String

The result is stored in this variable.

languageCode

true

 

Object/String

The languageCode of the language you wish to get a url to.

ID-result variable contains:
A string representing the url.

Examples

The following example gets an url to the current page but in the language with language code “sv” for Swedish and prints out the url in the href-tag. The success of this depends of course on that Swedish is enabled on that site/page.

<structure:pageUrlAfterLanguageChangeid="languageUrl" languageCode="sv"/>
<a href="<c:out value="${languageUrl}"/>">Read page in swedish</a>



comments powered by Disqus