添加Web内容显示portlet后,单击外观-Portlet配置-显示边框.
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?
我只想从所有portlet中删除关闭链接
I want to remove close link only from all the portlet
推荐答案这些portlet选项来自以下文件:
Those portlet options come from below files:
portal-web\docroot\html\themes\_unstyled\templates\portlet.vm portlet.vm使用$theme.portletIconOptions()包含不同的选项(配置,关闭,最大化,最小化等)
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
此类的portletIconOptions方法的实现使用了IconOptionsTag-自定义标记.
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 />
`
更多推荐
Liferay Web内容显示Portlet:外观
发布评论