Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
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'm looking at disabling the close Icon of admin portlet.<br /><br />I looked into "\html\common\box_top.jsp" 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
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 /><%<br />if (portletId.equals("XXXXXXXXX")) {<br />title="XXXXXXXX";<br />showCloseIcon = false;<br />showMaxIcon=false;<br />showMinIcon=false;<br />showMoveIcon=false;<br />}<br />%><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 /><%<br />if (portletId.equals("XXXXXXXXX")) {<br />title="XXXXXXXX";<br />showCloseIcon = false;<br />showMaxIcon=false;<br />showMinIcon=false;<br />showMoveIcon=false;<br />}<br />%><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, '_WAR_' and web app name<br /><c:when test="<%= portletDisplay.getId().equals("ProISPortlet_WAR_prois") %>"><br /><!-- hide min and max icons --><br /><% portletDisplay.setShowMinIcon(false); %><br /><% portletDisplay.setShowMaxIcon(false); %><br /><br /><div class="portlet-title"><br /><span>new name</span><br /></div><br /></c:when><br /><br />If this is in 3.6.1 already possible with config settings, please post it HERE :-) !<br /><br />And if someone knows how to do this in 4.0.x, please also post it here. Thx.<br /><br />Uwe<br />
Hello, how can i do this in Liferay 4.0.0 RC2 because i can't find the _ext file.<br /><br />thenk a lot.<br />
Community
Company
Feedback