Actualités

Inserire qui la presentazione alla pagina delle Notizie.
Une erreur s'est produite lors du traitement du modèle.
Java method "static com.liferay.document.library.kernel.service.DLFileEntryLocalServiceUtil.getFileEntry(long)" threw an exception; see cause exception in the Java stack trace.

----
FTL stack trace ("~" means nesting-related):
	- Failed at: #assign fileEntry = DLFileEntryLocalS...  [in template "10155#10195#6812542" at line 86, column 37]
----
1<#setting locale=locale> 
2<#assign DLFileEntryLocalServiceUtil = staticUtil["com.liferay.document.library.kernel.service.DLFileEntryLocalServiceUtil"] /> 
3<style> 
4img.thumbnail { 
5    width: 130px !important; 
6    height: 88px !important; 
7
8.clear { 
9    clear: both; 
10    height: 1px; 
11    margin-top: -1px; 
12    overflow: hidden; 
13
14.item-name { 
15    text-align: left; 
16    color: #39499b; 
17    font-size: 1.3em; 
18    padding-bottom: 5px; 
19    margin: 0; 
20
21.aui .container-fluid { 
22    padding-right: 0px; 
23    padding-left: 0px; 
24
25.title-container { 
26    float:right; 
27    width:80%; 
28    min-height: 100px; 
29
30.minisito-item { 
31    margin-bottom: 16px; 
32
33 
34@media (max-width: 1200px) { 
35    .title-container { 
36        width: 75%; 
37
38
39</style> 
40<div id="archivio-eventi" class="assets-news-container container-fluid"> 
41	<div class="container-fluid"> 
42		<div class="row-fluid notizie"> 
43				<#if entries?has_content> 
44					<ul class="items-list"> 
45					<#list entries as entry> 
46						<#assign renderer = entry.getAssetRenderer() /> 
47						<#assign className = renderer.getClassName() /> 
48						<#if className == "com.liferay.journal.model.JournalArticle"> 
49 
50						    <#assign journalArticle = renderer.getArticle() /> 
51						    <#assign localizedDocument = saxReaderUtil.read(entry.getAssetRenderer().getArticle().getContentByLocale(locale)) /> 
52 
53							 <#assign DataVisualizzata = localizedDocument.selectSingleNode("/root/dynamic-element[@name='DataVisualizzazione']/dynamic-content").getText() /> 
54 
55							 <#assign DataVisualizzata_DateObj = getterUtil.getString(DataVisualizzata) /> 
56							 <#if DataVisualizzata_DateObj?has_content && !DataVisualizzata_DateObj?starts_with("-")> 
57								<#assign display_date = DataVisualizzata_DateObj?datetime("yyyy-MM-dd") /> 
58								<#assign DataVisualizzata = display_date?string["dd MMMM yyyy"] /> 
59							 <#else> 
60								<#assign DataVisualizzata = "" /> 
61							 </#if> 
62							  
63							<#assign abstract = localizedDocument.selectSingleNode("/root/dynamic-element[@name='abstract']/dynamic-content").getText() /> 
64							  
65 
66							<#assign immagine = localizedDocument.selectSingleNode("/root//dynamic-element[@name='Immagine']/dynamic-content").getText() /> 
67							<#assign ImmagineTopAlt = localizedDocument.selectSingleNode("/root//dynamic-element[@name='TestoAlternativoImmagine']/dynamic-content").getText() /> 
68 
69							<#assign link = renderer.getURLViewInContext(renderRequest, renderResponse, '') /> 
70 
71							<#assign articlePrimKey = journalArticle.resourcePrimKey /> 
72							<#assign catLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetCategoryLocalService") /> 
73							<#assign articleCatNames = catLocalService.getCategoryNames(className, getterUtil.getLong(articlePrimKey)) /> 
74 
75 
76						     <#assign json = jsonFactoryUtil.createJSONObject(immagine) /> 
77	                         <#assign nameImg = json.getString("name") /> 
78	                         <#assign uuid = json.getString("uuid") /> 
79	                         <#assign fileEntryId = json.getLong("fileEntryId") /> 
80	                         <#assign groupId = json.getLong("groupId") /> 
81 
82	                         <#assign fileUrl = "" /> 
83	                         <#assign fileUrl2 = "" /> 
84 
85	                         <#if fileEntryId != 0> 
86	                            <#assign fileEntry = DLFileEntryLocalServiceUtil.getFileEntry(fileEntryId) /> 
87	                            <#assign immagineURL = "/documents/" + fileEntry.getGroupId() + "/" + fileEntry.getFolderId() + "/" + fileEntry.getTitle() + "/" + fileEntry.getUuid() /> 
88							 <#else> 
89							 	<#assign immagineURL = "" /> 
90	                         </#if> 
91 
92	                        <li class="odt_border_bottom-line_grey minisito-item"> 
93	                    		<div> 
94	                    			<div class="odt_w100x"> 
95	                    				<div class="newsfoto odt_back_bianco" style="width: 20%; float:left;"> 
96	                    				    <img alt="Immagine" class="thumbnail" src="${immagineURL}"> 
97	                    				</div> 
98	                    				<div class="odt_overflowhidden title-container"> 
99	                    					<div class="occhiello odt_overflowhidden"> 
100	                    						<div class="testo_rosso grassetto"></div> 
101	                    						<div>${DataVisualizzata}</div> 
102	                    					</div> 
103	                    					<div class="odt_titolo_mini_nero"> 
104	                    					<a href=${link}><span class="item-name"><span>${entry.getTitle(locale)}</span></span></a></div> 
105                    					<#if abstract?has_content> 
106                    				        <div>${abstract}</div> 
107                    				    </#if> 
108	                    				</div> 
109	                    				<div class="clear">&nbsp;</div> 
110	                    			</div> 
111	                    		</div> 
112	                    	</li> 
113						</#if> 
114					</#list> 
115					</ul> 
116				</#if> 
117			<div class="clearfix"></div> 
118		</div> 
119	</div> 
120</div>