Wednesday, 2 May 2012

Disabling portlet icons in Liferay

Problem:  Want to remove portlet icons like minimize, maximize, delete ..etc for all the portlets in liferay.  In some cases we dont want end user to delete or resize the deployed portlets. These operations should be done by only super admin/Omni admin/portal admin. In such case modify the portlet.vm to restrict these operations to only portal admin.

 Default icons for the tag cloud portlet.


Solution:  Edit portlet.vm and provide access to only portal admin.

   #if ($portlet_display.isShowBackIcon())
   #if ($permissionChecker.isOmniadmin())

No comments:

Post a Comment