Liferay Web content Display Portlet : Look and Feel - Portlet Configuration

人走茶凉 提交于 2019-12-12 03:43:58

问题


After adding web content display portlet , click on Look and Feel - Portlet Configuration - Show Borders.

If i uncheck Show Borders, it display three links as per below screenshot

Can anyone tell this three links code contains in which file?

I want to remove close link only from all the portlet


回答1:


Those portlet options come from below files:

portal-web\docroot\html\themes\_unstyled\templates\portlet.vm portlet.vm uses $theme.portletIconOptions() to include different options (configuration, close, Maximize, Minimize etc)

util-taglib\src\com\liferay\taglib\util\VelocityTaglibImpl.java

Implementation of portletIconOptions method is in this class which uses IconOptionsTag - custom tag.

util-taglib\src\com\liferay\taglib\portletext\IconOptionsTag.java

And this in-turn uses different custom tags for each of the options.

portal-web\docroot\html\taglib\portlet\icon_options\page.jsp

<liferay-portlet:icon-portlet-css />

<liferay-portlet:icon-configuration />

<liferay-portlet:icon-edit />

<liferay-portlet:icon-edit-defaults />

<liferay-portlet:icon-edit-guest />

<liferay-portlet:icon-export-import />

<liferay-portlet:icon-help />

<liferay-portlet:icon-print />

<liferay-portlet:icon-maximize />

<liferay-portlet:icon-minimize />

<liferay-portlet:icon-close />

`



来源:https://stackoverflow.com/questions/41999913/liferay-web-content-display-portlet-look-and-feel-portlet-configuration

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!