Disable Remove / Close ICON

16341, modificat fa 20 anys. Junior Member Apunts: 50 Data d'incorporació: 01/03/05 Publicacions recents
Hi,<br /><br />I&#39;m looking at disabling the close Icon of admin portlet.<br /><br />I looked into &quot;&#092;html&#092;common&#092;box_top.jsp&quot; and removed the close related code, works fine on all portlets but want this only on admin portlet, cud not trace where admin is implementing box_top.jsp.<br /><br />Can some one help me?<br /><br />Thanks<br />Vikram
thumbnail
13006, modificat fa 20 anys. Liferay Master Apunts: 690 Data d'incorporació: 18/08/04 Publicacions recents
In box_top-ext you have to do like this<br /><br />&lt;%<br />if (portletId.equals(&quot;XXXXXXXXX&quot;)) {<br />title=&quot;XXXXXXXX&quot;;<br />showCloseIcon = false;<br />showMaxIcon=false;<br />showMinIcon=false;<br />showMoveIcon=false;<br />}<br />%&gt;<br /><br /> cheers<br />nzsoori
16341, modificat fa 20 anys. Junior Member Apunts: 50 Data d'incorporació: 01/03/05 Publicacions recents
Thanks,<br /><br />I did just that in box_top.jsp and worked fine...<br /><br />Thanks<br />Vikram<br /><br />
In box_top-ext you have to do like this<br /><br />&lt;%<br />if (portletId.equals(&quot;XXXXXXXXX&quot;)) {<br />title=&quot;XXXXXXXX&quot;;<br />showCloseIcon = false;<br />showMaxIcon=false;<br />showMinIcon=false;<br />showMoveIcon=false;<br />}<br />%&gt;<br /><br /> cheers<br />nzsoori<br />

<br />
<br />
14391, modificat fa 20 anys. Junior Member Apunts: 29 Data d'incorporació: 18/04/05 Publicacions recents
<br />Thanks,<br /><br />I did just that in box_top.jsp and worked fine...<br /><br />Thanks<br />Vikram<br />
<br /><br /><br />The above is true for Liferay 3.2.0; in Liferay 3.6.1 you can do something like this to hide the icons<br />(I also changed the name there ...).<br />Code has to be placed in the first part of the file portlet-top.jsp (or -ext.jsp), which is located in the themes:<br /><br />// name of portlet is portlet-name from portlet.xml, &#39;_WAR_&#39; and web app name<br />&lt;c:when test=&quot;&lt;%= portletDisplay.getId().equals(&quot;ProISPortlet_WAR_prois&quot;) %&gt;&quot;&gt;<br />&#60;&#33;-- hide min and max icons --&#62;<br />&lt;% portletDisplay.setShowMinIcon(false); %&gt;<br />&lt;% portletDisplay.setShowMaxIcon(false); %&gt;<br /><br />&lt;div class=&quot;portlet-title&quot;&gt;<br />&lt;span&gt;new name&lt;/span&gt;<br />&lt;/div&gt;<br />&lt;/c:when&gt;<br /><br />If this is in 3.6.1 already possible with config settings, please post it HERE :-) &#33;<br /><br />And if someone knows how to do this in 4.0.x, please also post it here. Thx.<br /><br />Uwe<br />
thumbnail
16781, modificat fa 20 anys. Expert Apunts: 261 Data d'incorporació: 10/04/06 Publicacions recents
Hello, how can i do this in Liferay 4.0.0 RC2 because i can&#39;t find the _ext file.<br /><br />thenk a lot.<br />