【问题标题】:How to remove widget's title in Liferay's custom theme如何在 Liferay 自定义主题中删除小部件标题
【发布时间】:2020-05-30 11:52:30
【问题描述】:

我通过 IDE 为 Liferay 7.2 创建了一个自定义主题。当我尝试修改任何小部件的“外观”设置时,我无法删除标题或查看“应用程序装饰器”选项的下拉菜单。

我遵循了tutorial 并创建了“liferay-look-and-feel.xml”。有了这个文件,现在可以看到选项的下拉列表,但我仍然无法删除任何标题。甚至在“使用自定义标题”中选择“准系统”选项和“否”。

我打印了 portlet 首选项,并且“portletSetupUseCustomTitle”属性设置为 false

可能我的主题设置中缺少配置,但我不知道是哪一个。

【问题讨论】:

    标签: liferay freemarker liferay-7 liferay-theme


    【解决方案1】:
    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>
    

    【讨论】:

      猜你喜欢
      • 2019-01-12
      • 2014-05-15
      • 1970-01-01
      • 2021-12-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多