An error occurred while processing the template.
Multiple compatible overloaded variations were found with the same priority. The FTL type of the argument values were: Null. The Java type of the argument values were: Null. The matching overload was searched among these members: static com.liferay.portal.kernel.json.JSONFactoryUtil.createJSONObject(), static com.liferay.portal.kernel.json.JSONFactoryUtil.createJSONObject(Map), static com.liferay.portal.kernel.json.JSONFactoryUtil.createJSONObject(String) ---- FTL stack trace ("~" means nesting-related): - Failed at: #assign customFieldJson = jsonFactory... [in template "44029#44070#1746652" at line 21, column 73] ----
1<#assign dlAppService = serviceLocator.findService("com.liferay.document.library.kernel.service.DLAppService")>
2<#assign dlUtil = utilLocator.findUtil("com.liferay.document.library.kernel.util.DLUtil")>
3<#assign dlService = serviceLocator.findService("com.liferay.document.library.kernel.service.DLFileEntryLocalService")>
4<#assign ddmFieldLocalService = serviceLocator.findService("com.liferay.dynamic.data.mapping.service.DDMFieldLocalService")/>
5<#if entries?has_content>
6 <div class="row sprt-gal">
7 <#list entries as entry>
8 <#if entry.getClassName() == "com.liferay.journal.model.JournalArticle" >
9 <#assign assetRenderer = entry.getAssetRenderer()/>
10 <#assign journalArticle = assetRenderer.getAssetObject() />
11 <#assign ddmStructure = journalArticle.getDDMStructure() />
12 <#assign ddmForm = ddmStructure.getDDMForm()/>
13 <#assign ddmFormValues = ddmFieldLocalService.getDDMFormValues(ddmForm, journalArticle.getId()) />
14 <#assign ddmFormFieldValues = ddmFormValues.getDDMFormFieldValues() />
15 <div class="col-md-3 col-sm-4 col-xs-6">
16 <div class="card oc mb-3">
17 <div class="card-body">
18 <#list ddmFormFieldValues as fieldName>
19 <#if fieldName.getFieldReference() == 'Image41194971'>
20 <#assign jsonFactoryUtil = staticUtil["com.liferay.portal.kernel.json.JSONFactoryUtil"]>
21 <#assign customFieldJson = jsonFactoryUtil.createJSONObject(fieldName.getValue().getString(locale)) />
22 <#assign fileEntryId = getterUtil.getInteger(customFieldJson.get('fileEntryId'))>
23 <#if fileEntryId?? && fileEntryId!=0>
24 <#assign fileEntry = dlAppService.getFileEntry(fileEntryId) />
25 <#else>
26 <#assign urlImage = "#">
27 </#if>
28 <a href="/documents/${fileEntry.getRepositoryId()}/${fileEntry.getFolderId()}/${fileEntry.getFileName()}" title="${entry.getTitle(locale)}" target="_blank">
29 <img src="/documents/${fileEntry.getRepositoryId()}/${fileEntry.getFolderId()}/${fileEntry.getFileName()}" alt="${entry.getTitle(locale)}" />
30 </a>
31 </#if>
32 </#list>
33 </div>
34 </div>
35 </div>
36 <!-- <div>
37 <#list ddmFormFieldValues as fieldName>
38 <#if fieldName.getFieldReference() == 'Date39788239'>
39 ${fieldName.getValue().getString(locale)}
40 </#if>
41 </#list>
42 </div> -->
43 </#if>
44 </#list>
45 </div>
46</#if>
47
48<#--
49Widget templates can be used to modify the look of a
50specific application.
51
52Please use the left panel to quickly add commonly used variables.
53Autocomplete is also available and can be invoked by typing "${".
54-->
—
15 Items per Page