-
Hook to remove Portal Category from Control
Panel
There are Four Category in Control
Panel :
-
-
1) Control Panel : Personal
-
2) Control Panel : Site
-
3) Control Panel : Portal
-
4) Control Panel :Server
-
.
-
Using Hook We are going to hide 3) Control
Panel : Portal category from all user.
-
Create hook :
-
-
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\control_panel_menu
and put into
hooks\myfirsthook-hook\docroot\META-INF\custom_jsps\html\portlet\control_panel_menu\
edit it :
at the top create string :
<%
String portaltest = "Portal";
%>
at the edit this section :
<c:otherwise>
<c:if test="<%= !portlets.isEmpty() %>">
<c:if test="<%=
!title.equals(portaltest) %>">
<liferay-ui:panel collapsible="<%= true %>" cssClass="lfr-component
panel-page-category" extended="<%= true %>" id='<%= "panel-manage-" + curCategory %>' persistState="<%= true %>" title="<%= title %>">
<%=
categoryPortletsContent %>
liferay-ui:panel>
c:if>
c:if>
c:otherwise>
-
Deploy Hook.
-
Go to control Panel :
-
So Portal Category is removed now.
1 comment:
And How can i add category in control panel?
Post a Comment