Topic
  • No replies
SystemAdmin
SystemAdmin
878 Posts

Pinned topic Language Switching from Portal API, same as "ChangeLanguage" custom tag

‏2011-06-09T14:22:25Z |
How can I use the same API behind the portal language switching custom tag:
< portal-navigation:url command="ChangeLanguage" >< portal-navigation:urlParam name="locale" value="ar"/ >< /portal-navigation:url >

I want to do the following:

1- In "Default.jsp" retrieve a language parameter from the request

2- Based on the language parameter value, I want to perform language switching but from code using the correct Portal API,
the exact functionality of the language switching custom tag above.
Thanks
ADIGA