-
Adding
language selection to liferay dockbar.
-
Screen shot :
-
Steps:
-
liferay-hook.xml:
<hook>
<custom-jsp-dir>/META-INF/custom_jspscustom-jsp-dir>
hook>
-
Copy view.jsp from liferay-portal-6.1.0-ce-ga1\tomcat-7.0.23\webapps\ROOT\html\portlet\language
-
Paste view.jsp in to our hook at myfirsthook-hook\docroot\META-INF\custom_jsps\html\portlet\dockbar
-
Edit it :
-
Add line after toggle control :
<li class="aui-toolbar-separator">
<span>span>
li>
<liferay-ui:language displayStyle="0" />
<li class="aui-toolbar-separator">
<span>span>
li>
-
It will display all the languages as shown
in Fig.
-
Try chaning to
-
<liferay-ui:language displayStyle="1" />
-
<liferay-ui:language displayStyle="2" />
-
<liferay-ui:language displayStyle="3" />
-
To add particular language :
<%
String[]
mylangaugesIds= {"en_US","hi_IN"};
%>
<liferay-ui:language languageIds="<%=mylangaugesIds%>" displayStyle="4" />
----------------------------------------------------------------------------
Hook to Override JSP
Hooks to Override Portal Properties File
Hooks to override language Properties Files
Hooks to override user Login and Landing Page-PerLogin and Postlogin
Hooks To override Struts Actions
Hooks to override dockbar Portlet
1 comment:
How can we customize the portlet as ni instead of click add > more, ca we have the checkbox kind of thing for portlets?
Post a Comment