gpt4 book ai didi

java - 显示网页内容标题而不是 "Web Content Display"

转载 作者:行者123 更新时间:2023-12-01 05:01:00 26 4
gpt4 key购买 nike

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

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

最佳答案

我能想到的一个想法是通过Look and Feel隐藏标题“Web内容显示”的 portlet,然后使用 Structures & Templates 创建 Web 内容.

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>

关于java - 显示网页内容标题而不是 "Web Content Display",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13380117/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com