留言板
How to get Language selection drop down list in dock bar
Juhi Kumari,修改在12 年前。
How to get Language selection drop down list in dock bar
Expert 帖子: 347 加入日期: 11-12-12 最近的帖子
Hi,
I want language selection drop down list in dock bar same as in liferay.com. I customized view.jsp of dockbar using hooks , now its showing 'Language'
in dock bar but list is not displaying.
If any idea plz share!!
Regards
Juhi
I want language selection drop down list in dock bar same as in liferay.com. I customized view.jsp of dockbar using hooks , now its showing 'Language'
in dock bar but list is not displaying.
If any idea plz share!!
Regards
Juhi
Mayur Patel,修改在12 年前。
RE: How to get Language selection drop down list in dock bar
Expert 帖子: 358 加入日期: 10-11-17 最近的帖子
Juhi Kumari,修改在12 年前。
RE: How to get Language selection drop down list in dock bar
Expert 帖子: 347 加入日期: 11-12-12 最近的帖子
Hi Mayur,
Thanks for reply, but this is not my requirement. I exactly need the same as in liferay website. On mouse hoover it should show all the
contents of list.
Regards
Juhi
Thanks for reply, but this is not my requirement. I exactly need the same as in liferay website. On mouse hoover it should show all the
contents of list.
Regards
Juhi
Daniel Wilmes,修改在11 年前。
RE: How to get Language selection drop down list in dock bar
Regular Member 帖子: 164 加入日期: 11-5-23 最近的帖子 <%
PortletPreferences preferences = renderRequest.getPreferences();
Locale[] availableLocales = LanguageUtil.getAvailableLocales();
String[] availableLanguageIds = LocaleUtil.toLanguageIds(availableLocales);
String[] languageIds = StringUtil.split(preferences.getValue("languageIds", StringUtil.merge(availableLanguageIds)));
int displayStyle = GetterUtil.getInteger(preferences.getValue("displayStyle", StringPool.BLANK));
%>
<liferay-ui:language displayStyle="1" languageIds="<%= languageIds %>" />
<liferay-ui:language displayStyle="2" languageIds="<%= languageIds %>" />
<liferay-ui:language displayStyle="3" languageIds="<%= languageIds %>" />