Si è verificato un errore nell'elaborarazione del modello.
Java method "com.sun.proxy.$Proxy184.getFileEntryByUuidAndGroupId(String, long)" threw an exception when invoked on com.sun.proxy.$Proxy184 object "com.liferay.portlet.documentlibrary.service.impl.DLFileEntryServiceImpl@41226259"; see cause exception in the Java stack trace. ---- FTL stack trace ("~" means nesting-related): - Failed at: #assign file = fileEntry.getFileEntry... [in template "33878" in function "getFileEntryFromDocumentUrl" at line 22, column 9] - Reached through: @printDocumentList documentList=paren... [in template "33201#33237#33894" at line 215, column 29] ----
1<#-- Chiave del template globale "Utils" -->
2<#include "${templatesPath}/33878" />
3
4<#assign pathNewsList = "elenco-notizie">
5
6<#assign journalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService") />
7<#assign assetEntryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryLocalService") />
8<#assign vocabularyService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetVocabularyLocalService")>
9<#assign AssetCategoryPropertyLocalService = serviceLocator.findService("com.liferay.asset.category.property.service.AssetCategoryPropertyLocalService")>
10<#assign currentArticle = journalArticleLocalService.getArticle(groupId, .vars['reserved-article-id'].data) />
11<#assign currentArticleAssetEntry = assetEntryLocalService.getEntry("com.liferay.journal.model.JournalArticle", currentArticle.getResourcePrimKey()) />
12
13<#assign title = .vars['reserved-article-title'].data />
14<#assign urlTitle = .vars['reserved-article-url-title'].data />
15<#assign date = .vars['reserved-article-display-date'].data>
16<#assign dateTimeFormat = "dd MMMM yyyy">
17<#assign articleURL = themeDisplay.getURLPortal() + themeDisplay.getScopeGroup().getPathFriendlyURL(false, themeDisplay) + themeDisplay.getScopeGroup().getFriendlyURL() + "/-/" + urlTitle />
18
19
20<#setting locale = localeUtil.getDefault()>
21<#assign notizieLandingPage = "#">
22<#if themeDisplay.getThemeSetting("notizie-landing-page")?has_content>
23 <#assign notizieLandingPage = themeDisplay.getThemeSetting("notizie-landing-page")>
24</#if>
25
26<div class="container portale-istituzionale">
27 <div class="row notizia">
28 <div class="col-md-8">
29 <!-- Inestazione -->
30 <div class="row">
31 <div class="col">
32 <h2 class="h1">${title}</h2>
33 <#if parentStructure.Sottotitolo.getData()?has_content>
34 <h2>${parentStructure.Sottotitolo.getData()}</h2>
35 </#if>
36 </div>
37 </div>
38 <!-- Inestazione -->
39 <!-- Corpo -->
40 <#if parentStructure.TestoNotizia?has_content>
41 <div class="row corpo" >
42 <div class="col">
43 <#if
44 parentStructure.principalImage?? &&
45 parentStructure.principalImage.getData()?? &&
46 parentStructure.principalImage.getData()?has_content &&
47 parentStructure.principalImage.getData() != "" &&
48 parentStructure.showImage.getData()?has_content &&
49 parentStructure.showImage.getData() != "hide">
50
51 <#assign class = "full-width-img" />
52 <#if parentStructure.showImage.getData() == "float">
53 <#assign class = "float-img" />
54 </#if>
55 <img alt="${parentStructure.principalImage.getAttribute("alt")}" src="${parentStructure.principalImage.getData()}" class="${class}" />
56 </#if>
57 <div class="news-description">
58 ${parentStructure.TestoNotizia.getData()}
59 </div>
60 </div>
61 </div>
62 </#if>
63 <!-- Corpo -->
64
65 <!-- slider Immagini o video -->
66 <#assign expandoBridge = currentArticle.getExpandoBridge() />
67 <#if expandoBridge?? && expandoBridge.getAttribute("dlFolderID")?? >
68 <#assign idFolder = expandoBridge.getAttribute("dlFolderID") />
69 </#if>
70
71 <#if (idFolder?? && idFolder != "" && parentStructure?? && parentStructure.sliderVideoContent??) >
72 <div class="row media-slider">
73 <div class="col-md-12">
74 <!-- parentStructure.sliderVideoContent -->
75 <@printMediaGallery
76 items=parentStructure.sliderVideoContent
77 fieldImageName="sliderImageContent"
78 />
79 </div>
80 </div>
81 </#if>
82 <!-- slider Immagini o video -->
83
84 <!-- Categorizzazione -->
85 <div class="row col-md-12" >
86
87 <#list currentArticleAssetEntry.getCategories() as category>
88 <#assign badgeClass = "grigio">
89 <#assign categoryVocabulary = vocabularyService.getVocabulary(category['vocabularyId']?number)['name']>
90 <#if categoryVocabulary=="Aree Tematiche">
91 <#assign badgeClass = AssetCategoryPropertyLocalService.getCategoryProperty(category['categoryId']?number, 'css_class')['value'] >
92 </#if>
93
94 <#if categoryVocabulary=="Tipologia">
95 <#assign badgeClass = "tipologia-press" >
96 </#if>
97
98
99 <a class="link-badge mr-1" href="/${themeDisplay.getLocale()?substring(0, 2)}/web${themeDisplay.getScopeGroup()['friendlyURL']}/${pathNewsList}?p_r_p_categoryId=${category['categoryId']}">
100 <span class="badge badge-${badgeClass}">
101 ${category.getTitle(locale)}
102 </span>
103 </a>
104 </#list>
105
106 </div>
107 <!-- Categorizzazione -->
108 <!-- Data di visualizzazione -->
109 <div class="row col-md-12">
110
111 <#assign languagePubblicato = 'Pubblicato il'/>
112 <#if themeDisplay.getLanguageId()=='en_GB' || themeDisplay.getLanguageId()=='en_US'>
113 <#assign languagePubblicato = 'Posted on'/>
114 </#if>
115 <p>${languagePubblicato} ${date?datetime("EEE, d MMM yyyy HH:mm:ss Z")?string(dateTimeFormat)}</p>
116
117 </div>
118 <!-- Data di visualizzazione -->
119 </div>
120
121 <!-- Contenuti multimediali -->
122 <div class="col-md-4">
123 <div class="row">
124 <div class="d-none d-md-block">
125 <@printSocialBlock title=title url=articleURL />
126 </div>
127 </div>
128
129 <#assign
130 fromDate= getterUtil.getString(gruppoEvento.dataInizio.getData())
131 toDate= getterUtil.getString(gruppoEvento.dataFine.getData())
132 address = ''
133 city = ''
134 timeVisibility = 'hide'
135 timeSeparator = ''
136 fromTime = ''
137 toTime = ''
138 timePattern = "^(?:[01]\\d|2[0-3]):[0-5]\\d$"
139 >
140
141 <#if validator.isNotNull(fromDate)>
142
143 <div class="row">
144 <div class="col-12 documents-news">
145 <div class="news-document-block">
146 <#assign languageEventLabel = 'Evento'/>
147 <#if themeDisplay.getLanguageId()=='en_GB' || themeDisplay.getLanguageId()=='en_US'>
148 <#assign languageEventLabel = 'Event'/>
149 </#if>
150 <h3 >${languageEventLabel}</h3>
151
152 <#if (gruppoEvento.titoloEvento.getData())?has_content>
153 <div class="titolo-evento mb-1"><b>${gruppoEvento.titoloEvento.getData()}</b></div>
154 </#if>
155
156 <#if (gruppoEvento.luogoEvento.getData())?has_content>
157 <div class="luogo-evento mb-1">
158 <span><b>Luogo: </b></span>
159 <span> ${gruppoEvento.luogoEvento.getData()}</span>
160 </div>
161 </#if>
162
163 <#assign
164 address = gruppoEvento.indirizzoEvento.getData()
165 city = gruppoEvento.cittaEvento.getData()
166 addressVisibility = (address?has_content || city?has_content)?then('','hide')
167 separator = (address?has_content && city?has_content)?then('-','')
168 >
169
170 <div class="indirizzo-evento ${addressVisibility} m-b-1">
171 <span><b>Indirizzo: </b></span>
172 <span> ${address} ${separator} ${city} </span>
173 </div>
174
175 <div class="data-evento mb-1">
176 <span><b>Data: </b></span>
177
178 <#if validator.isNotNull(toDate)>
179 <span>dal ${fromDate?datetime("yyyy-MM-dd")?string(dateTimeFormat)} al ${toDate?datetime("yyyy-MM-dd")?string(dateTimeFormat)}</span>
180 <#else>
181 <span>${fromDate?datetime("yyyy-MM-dd")?string(dateTimeFormat)}</span>
182 </#if>
183 </div>
184
185 <#if (gruppoEvento.oraInizio.getData())?has_content && (gruppoEvento.oraInizio.getData())?matches(timePattern) >
186 <#assign fromTime = gruppoEvento.oraInizio.getData() />
187 <#assign timeVisibility = '' />
188 <#if (gruppoEvento.oraFine.getData())?has_content && (gruppoEvento.oraFine.getData())?matches(timePattern)>
189 <#assign toTime = gruppoEvento.oraFine.getData() />
190 <#assign timeSeparator = 'alle' />
191 </#if>
192 </#if>
193
194 <div class="orario-evento ${timeVisibility} mb-1">
195 <span><b>Orario: </b></span>
196 <span>dalle ${fromTime} ${timeSeparator} ${toTime} </span>
197 </div>
198 </div>
199 </div>
200 </div>
201 </#if>
202
203
204
205 <!-- Allegati -->
206 <#if groupItemHasContent(parentStructure.newsAttachmentFieldSet.newsAttachment)>
207 <div class="row">
208 <div class="col-12 documents-news">
209 <div class="news-document-block">
210 <#assign languageDocumentLabel = 'Documenti'/>
211 <#if themeDisplay.getLanguageId()=='en_GB' || themeDisplay.getLanguageId()=='en_US'>
212 <#assign languageDocumentLabel = 'Documents'/>
213 </#if>
214 <h3 >${languageDocumentLabel}</h3>
215 <@printDocumentList
216 documentList=parentStructure.newsAttachmentFieldSet.newsAttachment
217 documentTitleChildrenName="newsAttachmentTitle"
218 documentDescriptionChildrenName="newsAttachmentDescription"
219 printIcons = true />
220 </div>
221 </div>
222 </div>
223 </#if>
224 <!-- Allegati -->
225 </div>
226 <!-- Contenuti multimediali -->
227 </div>
228</div>
229
230
231
232<style>
233
234body.portal-popup .row.media-slider #loader-cube {
235 display: none;
236}
237
238body.portal-popup .row.media-slider #first-slider{
239 display: block !important;
240}
241
242
243body.portal-popup .row.media-slider #first-slider .splide__slide.first_slider,
244body.portal-popup .row.media-slider #first-slider .splide__slide.first_slider a{
245 display:none;
246}
247
248
249body.portal-popup .row.media-slider #first-slider .splide__slide.first_slider:first-child{
250 display:block;
251}
252
253.row.corpo{
254 margin-bottom: 24px !important;
255}
256
257</style>