Navigation Menu

Latest Tweets

Asset Publisher

An error occurred while processing the template.
The following has evaluated to null or missing:
==> entry  [in template "44029#44070#2145141" 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#2145141" 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					<#list ddmFormFieldValues as fieldName> 
28											<#if fieldName.getFieldReference() == 'Upload90001913'> 
29												<#assign jsonFactoryUtil = staticUtil["com.liferay.portal.kernel.json.JSONFactoryUtil"]> 
30												<#assign customFieldJson = jsonFactoryUtil.createJSONObject(fieldName.getValue().getString(locale)) /> 
31												<#assign fileEntryId =  getterUtil.getInteger(customFieldJson.get('fileEntryId'))> 
32												<#if fileEntryId?? && fileEntryId!=0> 
33														<#assign fileEntry = dlAppService.getFileEntry(fileEntryId) /> 
34															 
35																<#list ddmFormFieldValues as fieldName> 
36																	<#if fieldName.getFieldReference() == 'Title'> 
37																		<#assign contentTitle =fieldName.getValue().getString(locale)>  
38																		<a class="pdf-link" href=/documents/${fileEntry.getGroupId()}/${fileEntry.getFolderId()}/${fileEntry.getFileName()}/${fileEntry.getUuid()} title="${contentTitle}"> 
39																		<span class="font-bold">${contentTitle}</span> 
40																		</a> 
41																	</#if> 
42																</#list> 
43															 
44												<#else> 
45													<#assign urlImage = "#"> 
46														<#assign viewDetailURL = "/web/eng/detail?assetEntry="+entry.getEntryId()+"&assetClassPK="+entry.getClassPK() /> 
47														 
48																<#list ddmFormFieldValues as fieldName> 
49																	<#if fieldName.getFieldReference() == 'Title'> 
50																		<#assign contentTitle =fieldName.getValue().getString(locale)>  
51																		<a href="${viewDetailURL}" title="${contentTitle}"> 
52																		<span class="font-bold">${contentTitle}</span> 
53																		</a> 
54																	</#if> 
55																</#list> 
56												</#if> 
57											</#if> 
58										</#list>	 
59					<p class="list-group-subtitle text-muted"> 
60					${journalArticle.displayDate?date} <#--${journalArticle.displayDate?time}--> 
61					</p> 
62				</li> 
63			</#if> 
64		</#list> 
65		</ul> 
66	</div> 
67</#if> 
68 
69</div> 
70<style> 
71.taglib-page-iterator{display: none;} 
72</style> 
73<script> 
74function movePagination(){ 
75	$(".taglib-page-iterator").each(function(){ 
76		var taglibThis = $(this); 
77		if(taglibThis.attr('data-moved') != "moved"){ 
78			taglibThis.show(); 
79			var appendIn = taglibThis.parent().find('.accordion-content'); 
80			taglibThis.appendTo(appendIn); 
81			taglibThis.attr('data-moved', 'moved'); 
82
83	}); 
84	 
85	var accId = localStorage.getItem('accId'); 
86	var scrollpos = localStorage.getItem('scrollpos'); 
87	if (scrollpos){window.scrollTo(0, scrollpos);} 
88	if(accId){document.getElementById(accId).style.display = 'block';} 
89
90 
91setTimeout(movePagination, 1000) 
92 
93$('.accordion-header').click(function(){ 
94	var accId = $(this).parent().find('.accordion-content').attr('id'); 
95	localStorage.setItem('accId', accId); 
96}); 
97 
98window.onbeforeunload = function(e) { 
99	localStorage.setItem('scrollpos', window.scrollY); 
100}; 
101</script> 

Asset Publisher

Asset Publisher

Asset Publisher

Asset Publisher

Asset Publisher

Asset Publisher

Asset Publisher

Asset Publisher