Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Anil T
How to hide Portal category for Users in Control panel
July 13, 2012 12:06 AM
Answer

Anil T

Rank: Regular Member

Posts: 234

Join Date: January 14, 2012

Recent Posts

Hi,

I want to hide portal category for all users in the control panel. If anyone know about this please share with me.

Thanks
DarshanKumar N Bhatia
RE: How to hide Portal category for Users in Control panel
July 13, 2012 1:37 AM
Answer

DarshanKumar N Bhatia

Rank: Junior Member

Posts: 85

Join Date: March 2, 2010

Recent Posts

Anil T:
Hi,

I want to hide portal category for all users in the control panel. If anyone know about this please share with me.

Thanks


There are Four Category in Control Panel :

1) Control Panel : Personal
2) Control Panel : Site
3) Control Panel : Portal
4) Control Panel :Server

U can do this by creating new role and defining permission for this role.
And assign this role to all user (who has entry to control panel.)

Do u want to hide it from Admin too ??

if u want to remove 3) Control Panel : Portal from all user ..then

modify : liferay-portal-6.1.0-ce-ga1\tomcat-7.0.23\webapps\ROOT\html\portlet\control_panel_menu\view.jsp

Define this at top of view,jsp :

<%
String portaltest = "Portal";
%>

Make this changes at the end of jsp within tomcat .
(yes you can override using hook too ..)

<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>


<c:if test="<%= !title.equals(portaltest) %>"> --> It allows to display all other category accept Portal category.

HTH.......
Attachments: view.jsp (10.6k)