Navigation Menu

Latest Tweets

Asset Publisher

Asset Publisher

Asset Publisher

Asset Publisher

Asset Publisher

Asset Publisher

Asset Publisher

An error occurred while processing the template.
The following has evaluated to null or missing:
==> entry  [in template "44029#44070#4093218" at line 6, column 23]

----
Tip: If the failing expression is known to legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing</#if>. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)??
----

----
FTL stack trace ("~" means nesting-related):
	- Failed at: #assign categories = entry.getCategor...  [in template "44029#44070#4093218" at line 6, column 1]
----
1<#assign dlAppService = serviceLocator.findService("com.liferay.document.library.kernel.service.DLAppService")> 
2<#assign dlService = serviceLocator.findService("com.liferay.document.library.kernel.service.DLFileEntryLocalService")> 
3<#assign ddmFieldLocalService = serviceLocator.findService("com.liferay.dynamic.data.mapping.service.DDMFieldLocalService")/> 
4<div class="accordion-container bod"> 
5<h6 class="accordion-header" tabindex="0" role="link" aria-expanded="false"> 
6<#assign categories = entry.getCategories() /> 
7		<#if categories?has_content> 
8			<#list categories as category> 
9				${category.getName()} 
10				<#assign accId = category.getName()?replace('&[a-zA-Z]+;', '', 'r')?replace('[^a-zA-Z0-9. ]', '', 'r') > 
11			</#list> 
12		</#if> 
13</h6> 
14<#if entries?has_content>							 
15	<div class="accordion-content"> 
16		<ul class="list-group list-group-flush oa"> 
17		<#list entries as entry> 
18			<#if entry.getClassName() == "com.liferay.journal.model.JournalArticle" >       
19				<#assign assetRenderer = entry.getAssetRenderer()/> 
20				<#assign journalArticle = assetRenderer.getAssetObject() />	 
21				<#assign ddmStructure = journalArticle.getDDMStructure() /> 
22				<#assign ddmForm = ddmStructure.getDDMForm()/> 
23				<#assign ddmFormValues = ddmFieldLocalService.getDDMFormValues(ddmForm, journalArticle.getId()) /> 
24				<#assign ddmFormFieldValues = ddmFormValues.getDDMFormFieldValues() /> 
25				<#--<#assign viewDetailURL = "/web/eng/detail?assetEntry="+entry.getEntryId()+"&assetClassPK="+entry.getClassPK() />--> 
26				<li class="list-group-item"> 
27				<div> 
28					<div> 
29					<#list ddmFormFieldValues as fieldName> 
30											<#if fieldName.getFieldReference() == 'Upload90001913'> 
31												<#assign jsonFactoryUtil = staticUtil["com.liferay.portal.kernel.json.JSONFactoryUtil"]> 
32												<#assign customFieldJson = jsonFactoryUtil.createJSONObject(fieldName.getValue().getString(locale)) /> 
33												<#assign fileEntryId =  getterUtil.getInteger(customFieldJson.get('fileEntryId'))> 
34												<#if fileEntryId?? && fileEntryId!=0> 
35														<#assign fileEntry = dlAppService.getFileEntry(fileEntryId) /> 
36															 
37																<#list ddmFormFieldValues as fieldName> 
38																	<#if fieldName.getFieldReference() == 'Title'> 
39																		<#assign contentTitle =fieldName.getValue().getString(locale)>  
40																		<a class="pdf-link" href=/documents/${fileEntry.getGroupId()}/${fileEntry.getFolderId()}/${fileEntry.getFileName()}/${fileEntry.getUuid()} title="${contentTitle}"> 
41																		<span class="font-bold">${contentTitle}</span> 
42																		</a> 
43																	</#if> 
44																</#list> 
45																<#list ddmFormFieldValues as fieldName> 
46																	<#if fieldName.getFieldReference() == 'Description'> 
47																		<#assign contentDescription =fieldName.getValue().getString(locale)>  
48																		<p><span class="font-bold">${contentDescription}</span></p> 
49																	</#if> 
50																</#list> 
51															 
52												<#else> 
53													<#assign urlImage = "#"> 
54														<#assign viewDetailURL = "/web/eng/detail?assetEntry="+entry.getEntryId()+"&assetClassPK="+entry.getClassPK() /> 
55														 
56																<#list ddmFormFieldValues as fieldName> 
57																	<#if fieldName.getFieldReference() == 'Title'> 
58																		<#assign contentTitle =fieldName.getValue().getString(locale)>  
59																		<a href="${viewDetailURL}" title="${contentTitle}"> 
60																		<span class="font-bold">${contentTitle}</span> 
61																		</a> 
62																	</#if> 
63																</#list> 
64																<#list ddmFormFieldValues as fieldName> 
65																	<#if fieldName.getFieldReference() == 'Description'> 
66																		<#assign contentDescription =fieldName.getValue().getString(locale)>  
67																		<p><span class="font-bold">${contentDescription}</span></p> 
68																	</#if> 
69																</#list> 
70												</#if> 
71											</#if> 
72					</#list>	 
73					</div> 
74					<div> 
75					<p class="list-group-subtitle text-muted"> 
76					${journalArticle.displayDate?date} <#--${journalArticle.displayDate?time}--> 
77					</p> 
78					</div> 
79				</div> 
80				</li> 
81			</#if> 
82		</#list> 
83		</ul> 
84	</div> 
85</#if> 
86 
87</div> 
88<style> 
89.taglib-page-iterator{display: none;} 
90</style> 
91<script> 
92function movePagination(){ 
93	$(".taglib-page-iterator").each(function(){ 
94		var taglibThis = $(this); 
95		if(taglibThis.attr('data-moved') != "moved"){ 
96			taglibThis.show(); 
97			var appendIn = taglibThis.parent().find('.accordion-content'); 
98			taglibThis.appendTo(appendIn); 
99			taglibThis.attr('data-moved', 'moved'); 
100
101	}); 
102	 
103	var accId = localStorage.getItem('accId'); 
104	var scrollpos = localStorage.getItem('scrollpos'); 
105	if (scrollpos){window.scrollTo(0, scrollpos);} 
106	if(accId){document.getElementById(accId).style.display = 'block';} 
107
108 
109setTimeout(movePagination, 1000) 
110 
111$('.accordion-header').click(function(){ 
112	var accId = $(this).parent().find('.accordion-content').attr('id'); 
113	localStorage.setItem('accId', accId); 
114}); 
115 
116window.onbeforeunload = function(e) { 
117	localStorage.setItem('scrollpos', window.scrollY); 
118}; 
119</script> 

Asset Publisher