Menu de Navegação

Latest Tweets

Publicador de Conteúdos e Mídias

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

Publicador de Conteúdos e Mídias

Publicador de Conteúdos e Mídias

Publicador de Conteúdos e Mídias

Publicador de Conteúdos e Mídias

Publicador de Conteúdos e Mídias

Publicador de Conteúdos e Mídias

Publicador de Conteúdos e Mídias

Publicador de Conteúdos e Mídias

Publicador de Conteúdos e Mídias

Publicador de Conteúdos e Mídias