Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

remove configuration icon from a portlet window - liferay

  Asked By: Rani    Date: Jul 12    Category: Java    Views: 2693
  

A friend of mine has asked me the following question:

"We would like to remove configuration icon from a portlet window, which we hope also will remove the configuration functionality for that portlet.
We are just trying to disable configuration for specific portlet."

ps:He is using liferay

Share: 

 

3 Answers Found

 
Answer #1    Answered By: Coleman Smith     Answered On: Jul 12

see your liferay-portlet.xml
In docroot/WEB-INF/liferay-portlet.xml,



you can also customize config icon  this way:

you can add add the configuration-action-class tag

<liferay-portlet-app>
<portlet>
...
<configuration-action-class>com.sample.strutsliferay.portlet.action.ConfigurationActionImpl</configuration-action-class>
and then write your custoized action:

ConfigurationActionImpl.java

 
Answer #2    Answered By: Kevin Thomas     Answered On: Jun 25

Hi Rani,

You can remove the configuration icon from your portlets by removing the following line of code from your-theme\docroot/WEB-INF/liferay-portlet.xml

$theme.iconOptions()


Regards
Kevin Thomas
Attune Infocom Inc
Email : contact@attuneinfocom.com
Liferay Portlet

 
Answer #3    Answered By: Aman Bhatia     Answered On: Oct 17

Add if condition in root/web-inf/html/themes/classic/template/portlet.vm

so only admin can view all window states or you can do only for configuration icon.

#if ($permissionChecker.isOmniadmin())
$theme.iconOptions()
$theme.iconMinimize()
$theme.iconMaximize()
$theme.iconClose()

#end

 
Didn't find what you were looking for? Find more on remove configuration icon from a portlet window - liferay Or get search suggestion and latest updates.




Tagged: