Navigation Menu

Latest Tweets

Asset Publisher

2022

Asset Publisher

An error occurred while processing the template.
The following has evaluated to null or missing:
==> entry  [in template "44029#44070#2444459" 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#2444459" 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="true"> 
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				<#--${accId}--> 
12			</#list> 
13		</#if> 
14</h6> 
15 
16<#if entries?has_content>							 
17	<div class="accordion-content"> 
18		<ul class="list-group list-group-flush oa"> 
19		<#list entries as entry> 
20			<#if entry.getClassName() == "com.liferay.journal.model.JournalArticle" >       
21				<#assign assetRenderer = entry.getAssetRenderer()/> 
22				<#assign journalArticle = assetRenderer.getAssetObject() />	 
23				<#assign ddmStructure = journalArticle.getDDMStructure() /> 
24				<#assign ddmForm = ddmStructure.getDDMForm()/> 
25				<#assign ddmFormValues = ddmFieldLocalService.getDDMFormValues(ddmForm, journalArticle.getId()) /> 
26				<#assign ddmFormFieldValues = ddmFormValues.getDDMFormFieldValues() /> 
27				<#--<#assign viewDetailURL = "/web/eng/detail?assetEntry="+entry.getEntryId()+"&assetClassPK="+entry.getClassPK() />--> 
28				<li class="list-group-item"> 
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															<#assign viewDetailURLS = "/web/eng/detail?assetEntry="+entry.getEntryId()+"&assetClassPK="+entry.getClassPK() /> 
37																<#list ddmFormFieldValues as fieldName> 
38																	<#if fieldName.getFieldReference() == 'Title'> 
39																		<#assign contentTitle =fieldName.getValue().getString(locale)>  
40																		<a class="pdf-link" href=${viewDetailURLS} title="${contentTitle}"> 
41																		<span class="font-bold">${contentTitle}</span> 
42																		</a> 
43																	</#if> 
44																</#list> 
45															 
46												<#else> 
47													<#assign urlImage = "#"> 
48														<#assign viewDetailURL = "/web/eng/detail?assetEntry="+entry.getEntryId()+"&assetClassPK="+entry.getClassPK() /> 
49														 
50																<#list ddmFormFieldValues as fieldName> 
51																	<#if fieldName.getFieldReference() == 'Title'> 
52																		<#assign contentTitle =fieldName.getValue().getString(locale)>  
53																		<a href="${viewDetailURL}" title="${contentTitle}"> 
54																		<span class="font-bold">${contentTitle}</span> 
55																		</a> 
56																	</#if> 
57																</#list> 
58														 
59										 
60												</#if> 
61											</#if> 
62										</#list>	 
63					<p class="list-group-subtitle text-muted"> 
64					${journalArticle.displayDate?date} <#--${journalArticle.displayDate?time}--> 
65					</p> 
66				</li> 
67			</#if> 
68		</#list> 
69		</ul> 
70	</div> 
71</#if> 
72</div> 
73<style> 
74.taglib-page-iterator{display: none;} 
75</style> 
76<script> 
77function movePagination(){ 
78	$(".taglib-page-iterator").each(function(){ 
79		var taglibThis = $(this); 
80		if(taglibThis.attr('data-moved') != "moved"){ 
81			taglibThis.show(); 
82			var appendIn = taglibThis.parent().find('.accordion-content'); 
83			taglibThis.appendTo(appendIn); 
84			taglibThis.attr('data-moved', 'moved'); 
85
86	}); 
87	 
88	var accId = localStorage.getItem('accId'); 
89	var scrollpos = localStorage.getItem('scrollpos'); 
90	if (scrollpos){window.scrollTo(0, scrollpos);} 
91	if(accId){document.getElementById(accId).style.display = 'block';} 
92
93 
94setTimeout(movePagination, 1000) 
95 
96$('.accordion-header').click(function(){ 
97	var accId = $(this).parent().find('.accordion-content').attr('id'); 
98	localStorage.setItem('accId', accId); 
99}); 
100 
101window.onbeforeunload = function(e) { 
102	localStorage.setItem('scrollpos', window.scrollY); 
103}; 
104</script> 

Asset Publisher

2020

Asset Publisher

2019

Asset Publisher

2018

Asset Publisher

2017

Asset Publisher

2016

Asset Publisher

2015

Asset Publisher

2014

Asset Publisher

2013

Asset Publisher

2012

Asset Publisher

Asset Publisher