Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在 Liferay 结构中使用链接到布局字段,
<dynamic-element name="linktopage" type="link_to_layout" index-type="" />
在我使用 href="$linktopage.getURL()" 的模板中,链接工作正常,但页面 url 是 /web/12/13
我需要一个带有页面名称的 SEO url。 任何人都知道如何使用链接到布局和速度变量来做到这一点?
Tnx萨布丽娜
而不是$linktopage.getURL(), try $linktopage.getFriendlyURL(),这应该为您提供带有页面名称而不是布局 ID 的 url。
$linktopage.getURL()
$linktopage.getFriendlyURL()