[英]How to remove widget's title in Liferay's custom theme
我通過 IDE 為 Liferay 7.2 創建了一個自定義主題。 當我嘗試修改任何小部件的“外觀和感覺”設置時,我無法刪除標題或查看“應用程序裝飾器”選項的下拉列表。
我按照本教程創建了“liferay-look-and-feel.xml”。 有了這個文件,選項的下拉菜單現在可見,但我仍然無法刪除任何標題。 甚至在“使用自定義標題”中選擇“准系統”選項和“否”。
我打印了 portlet 首選項,並將“portletSetupUseCustomTitle”屬性設置為 false
可能我的主題設置缺少配置,但我不知道是哪一個。
In your custom theme find portlet.ftl file Add this line where title are shown
<#if portlet_display.getPortletDecoratorId() != "barebone">
<div class="autofit-col autofit-col-expand">
<h2 class="portlet-title-text">${portlet_title}</h2>
</div>
</#if>
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.