Navigation Menu

Latest Tweets

Asset Publisher

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#2449509" at line 21, column 41]
----
1<#assign ddmFieldLocalService = serviceLocator.findService("com.liferay.dynamic.data.mapping.service.DDMFieldLocalService")/> 
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 dlAppService = serviceLocator.findService("com.liferay.document.library.kernel.service.DLAppService")> 
5 
6<#if entries?has_content>	 
7<ul class="list-group list-group-flush oa"> 
8<#list entries as entry> 
9 
10	<#assign assetRenderer = entry.getAssetRenderer()/> 
11	<#assign journalArticle = assetRenderer.getAssetObject() />	 
12	<#assign ddmStructure = journalArticle.getDDMStructure() /> 
13	<#assign ddmForm = ddmStructure.getDDMForm()/> 
14	<#assign ddmFormValues = ddmFieldLocalService.getDDMFormValues(ddmForm, journalArticle.getId()) /> 
15	<#assign ddmFormFieldValues = ddmFormValues.getDDMFormFieldValues() /> 
16	<#assign viewDetailURL = "/web/hi/detail?assetEntry="+entry.getEntryId() /> 
17	 
18	<#list ddmFormFieldValues as fieldName> 
19				<#if fieldName.getFieldReference() == 'Upload90001913'> 
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							<li class="list-group-item"> 
26						<#assign urlImage = "#"> 
27						<#list ddmFormFieldValues as fieldName> 
28							 
29							 
30									 
31										<#if fieldName.getFieldReference() == 'Title'> 
32											<#assign contentTitle =fieldName.getValue().getString(locale)>  
33											<a href="${viewDetailURL}" title="${contentTitle}"> 
34											<span class="list-group-title">${contentTitle}</span> 
35											</a> 
36										</#if> 
37									 
38							 
39							<p class="list-group-subtitle text-muted"> 
40						 
41									<#if fieldName.getFieldReference() == 'PublishedDate'> 
42										<#--${fieldName.getValue().getString(locale)}--> 
43										${journalArticle.displayDate?date} 
44									</#if> 
45									 
46						 
47							</p> 
48							 
49						</#list> 
50						 
51						</li> 
52					<#else> 
53						<li class="list-group-item"> 
54						<#assign urlImage = "#"> 
55						<#list ddmFormFieldValues as fieldName> 
56							 
57							 
58									 
59										<#if fieldName.getFieldReference() == 'Title'> 
60											<#assign contentTitle =fieldName.getValue().getString(locale)>  
61											<a href="${viewDetailURL}" title="${contentTitle}"> 
62											<span class="list-group-title">${contentTitle}</span> 
63											</a> 
64										</#if> 
65									 
66							 
67							<p class="list-group-subtitle text-muted"> 
68						 
69									<#if fieldName.getFieldReference() == 'PublishedDate'> 
70									<#--${fieldName.getValue().getString(locale)}--> 
71										${journalArticle.displayDate?date} 
72									</#if> 
73									 
74						 
75							</p> 
76							 
77						</#list> 
78						 
79						 
80						</li> 
81					</#if> 
82				</#if> 
83			 
84	</#list> 
85 
86</#list> 
87</ul>	 
88</#if> 
89 
90<#-- 
91Widget templates can be used to modify the look of a 
92specific application. 
93 
94Please use the left panel to quickly add commonly used variables. 
95Autocomplete is also available and can be invoked by typing "${". 
96-->