2017-02-02 69 views
0

添加Web內容顯示Portlet後,單擊外觀和感覺 - Portlet配置 - 顯示邊框。Liferay Web內容顯示Portlet:外觀和感覺 - Portlet配置

如果我取消顯示邊框,它顯示三通按照下面的截圖 enter image description here

誰能告訴這三個環節代碼包含在哪個文件?

我只想從所有的portlet除去密切聯繫

+0

您可以管理顯示配置選項只有特定角色。 –

+0

同意@ParkashKumar。它應該由角色權限而不是代碼來處理。 –

+0

請檢查源代碼以檢查本部分是否檢查了所有角色,並且只有當您只想更新某個設置而不是整個部分時,如果您要查找代碼選項 –

回答

0

那些門戶選項來自以下文件:

portal-web\docroot\html\themes\_unstyled\templates\portlet.vm portlet.vm使用$theme.portletIconOptions()包括不同的選項(配置,關閉,最大化,最小化等)

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

portletIconOptions方法的實現是在這個類,它使用IconOptio nsTag - 自定義標籤。

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

而這,反過來又使用每個選項不同的自定義標籤。

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 /> 

`