【问题标题】:Display Web Content Title instead of "Web Content Display"显示 Web 内容标题而不是“Web 内容显示”
【发布时间】:2012-11-14 13:52:16
【问题描述】:

当我将 Web 内容显示添加到我的页面时,Portlet 的标题为“Web 内容显示”。

那么如何告诉 Liferay 它应该使用显示的 Web 内容的标题。

【问题讨论】:

  • 嗯,这是一个想法!不幸的是,我现在所知道的没有自动机制可以做到这一点。但是,您可以通过单击标题或在Look and Feel 选项中手动为其命名。

标签: java content-management-system liferay portlet


【解决方案1】:

我能想到的一个想法是通过portlet的Look and Feel隐藏标题“Web-content Display”,然后使用Structures & Templates创建一个web-content。

Template 中,您可以指定title 显示在网络内容的顶部,您可以使用一些css-magic 将其定位在portlet-title 曾经出现的位置。我觉得应该不难。

<!-- position this div with the help of CSS to give the feel of the title -->
<div class="temp-title">$contentTitle</div> 
<div class="content">$myContent</div>

【讨论】:

    猜你喜欢
    • 2017-11-29
    • 1970-01-01
    • 1970-01-01
    • 2020-07-09
    • 1970-01-01
    • 1970-01-01
    • 2018-10-12
    • 1970-01-01
    • 2013-09-01
    相关资源
    最近更新 更多