【发布时间】:2021-12-17 02:09:40
【问题描述】:
Liferay 7.4 将结构数据存储在“ddmfieldattribute”表中。我正在尝试获取 ADT 模板中结构的字段,但找不到解决方案。
结构有以下字段:
- 标题
- 内容
ADT代码如下:
<#assign dlService = serviceLocator.findService("com.liferay.document.library.kernel.service.DLFileEntryLocalService")>
<#if entries?has_content>
<#list entries as entry>
<#if entry.getClassName() == "com.liferay.journal.model.JournalArticle" >
//Get the fields from the structure
</#if>
</#list>
</#if>
问候!
【问题讨论】:
标签: liferay freemarker liferay-7