Si è verificato un errore nell'elaborarazione del modello.
Java method "static com.liferay.asset.kernel.service.AssetCategoryServiceUtil.getCategory(long)" threw an exception; see cause exception in the Java stack trace. ---- FTL stack trace ("~" means nesting-related): - Failed at: #assign currentCat = AssetCategorySer... [in template "10154#10192#19096408" at line 15, column 17] ----
1<#setting locale="it_IT">
2
3<#assign siteBaseURL = themeDisplay.getPortalURL() />
4
5<#assign DLFileEntryLocalServiceUtil = staticUtil["com.liferay.document.library.kernel.service.DLFileEntryLocalServiceUtil"] />
6<#assign AssetCategoryLocalServiceUtil = staticUtil["com.liferay.asset.kernel.service.AssetCategoryLocalServiceUtil"]>
7
8<#assign LayoutLocalServiceUtil = staticUtil["com.liferay.portal.kernel.service.LayoutLocalServiceUtil"] />
9<#assign AssetCategoryServiceUtil = staticUtil["com.liferay.asset.kernel.service.AssetCategoryServiceUtil"] />
10<#assign childCategoryId = 0 />
11<#assign parentCategoryId = 0 />
12<#assign values = portletPreferences['queryValues0'] />
13<#if values?has_content>
14 <#list values as value>
15 <#assign currentCat = AssetCategoryServiceUtil.getCategory(value?number) />
16 <#assign AssetVocabularyServiceUtil = staticUtil["com.liferay.asset.kernel.service.AssetVocabularyServiceUtil"]>
17 <#assign assetVocabulary = AssetVocabularyServiceUtil.getVocabulary(currentCat.getVocabularyId()) />
18 <#if assetVocabulary.getName() == "Temi">
19 <#if currentCat.getParentCategory()??>
20 <#assign childCategoryId = currentCat.getCategoryId()/>
21 <#assign parentCategoryId = currentCat.getParentCategory().getCategoryId() />
22 <#else>
23 <#assign parentCategoryId = currentCat.getCategoryId()/>
24 </#if>
25 </#if>
26 </#list>
27</#if>
28
29<#if !entries?has_content>
30 <#if themeDisplay.isSignedIn()>
31 <div class="alert alert-info">
32 <@liferay.language key="there-are-no-menu-items-to-display" />
33 </div>
34 </#if>
35</#if>
36
37<#if entries?has_content>
38 <#assign currentPageName = themeDisplay.getLayout().getName(locale) />
39
40 <#assign iconTema = "" />
41 <#assign headerPageName = "" />
42 <#assign headerPageURL = "" />
43 <#assign subHeaderPageName = "" />
44 <#assign subHeaderPageURL = "" />
45 <#assign sottotema = false />
46 <#assign hasSubSottotema = false />
47
48 <#assign temaPage = ""/>
49 <#assign temaPageProva = ""/>
50
51 <#assign layout = themeDisplay.getLayout() />
52 <#if layout.getParentLayoutId() != 0 >
53 <#assign parentLayout = LayoutLocalServiceUtil.getLayout(layout.getGroupId(), false, layout.getParentLayoutId()) />
54
55 <#if parentLayout.getParentLayoutId() != 0 && parentLayout.getName(locale) != "TEMI E SERVIZI">
56
57 <#assign temaPage = parentLayout />
58
59 <#assign sottotema = true />
60 <#assign headerPageName = parentLayout.getName(locale) />
61 <#assign headerPageURL = siteBaseURL + parentLayout.getFriendlyURL() />
62
63 <#assign parentParentLayout = LayoutLocalServiceUtil.getLayout(parentLayout.getGroupId(), false, parentLayout.getParentLayoutId()) />
64
65 <#if parentParentLayout.getParentLayoutId() != 0 && parentParentLayout.getName(locale) != "TEMI E SERVIZI">
66 <#assign parentParentParentLayout = LayoutLocalServiceUtil.getLayout(parentParentLayout.getGroupId(), false, parentParentLayout.getParentLayoutId()) />
67
68 <#if parentParentParentLayout.getParentLayoutId() != 0 && parentParentParentLayout.getName(locale) == "TEMI E SERVIZI">
69 <#assign iconTema = "rt-icon-" + parentParentLayout.getName(locale)?replace(" ", "")?lower_case />
70 <#assign headerPageName = parentParentLayout.getName(locale) />
71 <#assign headerPageURL = siteBaseURL + parentParentLayout.getFriendlyURL() />
72 <#assign subHeaderPageName = parentLayout.getName(locale) />
73 <#assign subHeaderPageURL = siteBaseURL + parentLayout.getFriendlyURL() />
74 <#assign hasSubSottotema = true />
75
76 <#assign temaPage = parentParentLayout />
77
78 </#if>
79 <#else>
80 <#assign iconTema = "rt-icon-" + parentLayout.getName(locale)?replace(" ", "")?lower_case />
81 <#assign headerPageName = parentLayout.getName(locale) />
82 </#if>
83
84 <#else>
85 <#assign temaPage = themeDisplay.getLayout() />
86
87 <#assign iconTema = "rt-icon-" + currentPageName?replace(" ", "")?lower_case />
88 </#if>
89
90 </#if>
91
92 <#assign pageAggiornamentiTema = "" />
93
94 <#if temaPage?? && temaPage != "">
95 <#if temaPage.getExpandoBridge().hasAttribute("Pagina Aggiornamenti Tema") >
96 <#assign pageAggiornamentiTema = temaPage.getExpandoBridge().getAttribute("Pagina Aggiornamenti Tema") />
97 </#if>
98 </#if>
99 <#if pageAggiornamentiTema?? && pageAggiornamentiTema!="">
100 <#if childCategoryId?? && childCategoryId != 0>
101 <#assign pageAggiornamentiTema = pageAggiornamentiTema + "?p_r_p_categoryId=" + childCategoryId />
102 <#elseif parentCategoryId?? && parentCategoryId != 0>
103 <#assign pageAggiornamentiTema = pageAggiornamentiTema + "?p_r_p_categoryId=" + parentCategoryId />
104 </#if>
105 </#if>
106
107 <div class="rt-page__content ">
108 <section class="rt-section rt-section--box rt-section--box-col-3" aria-label="Sezione degli aggiornamenti">
109 <div class="rt-section-title-wrapper has-button">
110 <h2 class="rt-section-title">Aggiornamenti</h2>
111 <#if pageAggiornamentiTema?? && pageAggiornamentiTema != "" >
112 <a href="${pageAggiornamentiTema}" title="Vedi tutti gli aggiornamenti" aria-label="Vedi tutti gli aggiornamenti" class="rt-btn rt-btn-light rt-btn-view">
113 Vedi tutti
114 <i aria-hidden="true" class="far fa-plus"></i>
115 </a>
116 </#if>
117 </div>
118
119 <div class="rt-section__wrapper">
120 <#if entries?has_content>
121 <#list entries as curEntry>
122 <#assign assetRenderer = curEntry.getAssetRenderer() />
123 <#assign className = assetRenderer.getClassName() />
124
125 <#assign rendererURL = siteBaseURL + "/-/" + assetRenderer.getUrlTitle() />
126
127 <#if className = "com.liferay.journal.model.JournalArticle" >
128 <#assign article = assetRenderer.getArticle() />
129 <#if article?? >
130 <#assign docXml = saxReaderUtil.read(article.getContent()) />
131
132 <#assign titleText = curEntry.getTitle(locale) />
133 <#assign titleLength = titleText?length />
134
135 <#if (titleLength > 98) >
136 <#assign titleText = titleText?substring(0,98) />
137 <#assign titleText = titleText + "..." />
138 </#if>
139 <div class="rt-box rt-box--update">
140 <div class="rt-box__header">
141 <div class="rt-box__wrapper">
142 <#assign categoryList = AssetCategoryLocalServiceUtil.getAssetEntryAssetCategories(curEntry.getEntryId()) />
143 <#assign temi = [] />
144 <#assign parentCategory = "" />
145 <#assign childCategory = "" />
146
147 <#assign parentCategorySpec = "" />
148
149 <#list categoryList as category>
150 <#assign AssetVocabularyServiceUtil = staticUtil["com.liferay.asset.kernel.service.AssetVocabularyServiceUtil"]>
151 <#assign assetVocabulary = AssetVocabularyServiceUtil.getVocabulary(category.getVocabularyId()) />
152 <#if assetVocabulary.getName() == "Temi">
153 <#assign temi = temi + [category] />
154 <#if parentCategoryId == 0>
155 <#if category.getParentCategory()??>
156 <#assign childCategory = category.getName()/>
157 <#assign parentCategory = category.getParentCategory().getName()/>
158 <#else>
159 <#assign parentCategory = category.getName()/>
160 </#if>
161 <#else>
162 <#if category.getParentCategory()?? && (category.getParentCategory().getCategoryId() == parentCategoryId)>
163 <#assign childCategory = category.getName()/>
164 <#assign parentCategory = category.getParentCategory().getName()/>
165 <#elseif category.getCategoryId() == parentCategoryId >
166 <#assign parentCategory = category.getName()/>
167 </#if>
168 </#if>
169 </#if>
170 </#list>
171
172 <#if (parentCategory?? && parentCategory != "") || (childCategory?? && childCategory != "")>
173 <div class="rt-box__category">
174 <#if parentCategory?? && parentCategory != "">
175 ${parentCategory}
176 </#if>
177 <#if childCategory?? && childCategory != "">
178 <i class="fas fa-circle"></i>
179 ${childCategory}
180 </#if>
181 </div>
182 <#else>
183 <#list categoryList as category>
184 <#assign AssetVocabularyServiceUtil = staticUtil["com.liferay.asset.kernel.service.AssetVocabularyServiceUtil"]>
185 <#assign assetVocabulary = AssetVocabularyServiceUtil.getVocabulary(category.getVocabularyId()) />
186 <#if assetVocabulary.getName() == "Speciali">
187
188
189 <#if category.getParentCategory()??>
190 <#assign tempCategory1 = category.getParentCategory() />
191 <#if tempCategory1.getParentCategory()??>
192 <#assign tempCategory2 = tempCategory1.getParentCategory() />
193
194 <#if tempCategory2.getParentCategory()??>
195 <#assign tempCategory3 = tempCategory2.getParentCategory() />
196
197 <#if tempCategory3.getParentCategory()??>
198 <#assign tempCategory4 = tempCategory3.getParentCategory() />
199
200 <#if tempCategory4.getParentCategory()??>
201 <#assign tempCategory5 = tempCategory4.getParentCategory() />
202 <#else>
203 <#assign parentCategorySpec = tempCategory4 />
204 </#if>
205 <#else>
206 <#assign parentCategorySpec = tempCategory3 />
207 </#if>
208 <#else>
209 <#assign parentCategorySpec = tempCategory2 />
210 </#if>
211 <#else>
212 <#assign parentCategorySpec = tempCategory1 />
213 </#if>
214 <#else>
215 <#assign parentCategorySpec = category />
216 </#if>
217
218 <#break>
219 </#if>
220 </#list>
221
222 <#if (parentCategorySpec?? && parentCategorySpec != "") >
223 <div class="rt-box__category">
224 Speciale
225 <i class="fas fa-circle"></i>
226 ${parentCategorySpec.getName()}
227
228 </div>
229 </#if>
230
231 </#if>
232
233 <div class="rt-box__title">
234 <a title="Vai all'aggiornamento ${titleText?replace('"','"')}" aria-label="Vai all'aggiornamento ${titleText?replace('"','"')}" href="${rendererURL}">
235 ${titleText}
236 </a>
237 </div>
238 </div>
239
240 <div class="rt-box__icon">
241
242
243
244 <#assign TipologiaAggiornamento = docXml.valueOf("//dynamic-element[@name='TipologiaAggiornamento']/dynamic-content/text()") />
245
246 <#if TipologiaAggiornamento?? && TipologiaAggiornamento != "">
247
248 <#if TipologiaAggiornamento?? && TipologiaAggiornamento != "" && TipologiaAggiornamento?upper_case == 'GENERICO'>
249 <div class="rt-box__icon">
250 <div class="rt-box__icon-label"></div>
251
252 <#if assetRenderer.getThumbnailPath(renderRequest)?? >
253 <div class="rt-box__thumb" style="background-image: url('${assetRenderer.getThumbnailPath(renderRequest)}');"></div>
254 <#else>
255 <#assign immagineCopertina = docXml.valueOf("//dynamic-element[@name='ImmagineCopertina']/dynamic-content/text()") />
256 <#if immagineCopertina?? && immagineCopertina != "">
257 <#assign json = jsonFactoryUtil.createJSONObject(immagineCopertina) />
258
259 <#assign nameImg = json.getString("name") />
260 <#assign fileEntryId = json.getLong("fileEntryId") />
261 <#assign altImg = json.getString("alt") />
262 <#assign fileUrl = "" />
263 <#assign uuiD = json.getString("uuid") />
264 <#assign groupId = json.getLong("groupId") />
265 <#if fileEntryId != 0>
266 <#assign fileEntry = DLFileEntryLocalServiceUtil.getFileEntry(fileEntryId) />
267 <#assign fileUrl = "/documents/" + fileEntry.getGroupId() + "/" + fileEntry.getFolderId() + "/" + fileEntry.getTitle() + "/" + fileEntry.getUuid() />
268 <div class="rt-box__thumb" aria-label="${altImg}" style="background-image: url('${fileUrl}');"></div>
269 <#else>
270 <#if groupId != 0 && uuiD != "">
271 <#assign fileEntry = DLFileEntryLocalServiceUtil.getFileEntryByUuidAndGroupId(uuiD,groupId) />
272
273 <#if fileEntry?? >
274 <#assign fileUrl = "/documents/" + fileEntry.getGroupId() + "/" + fileEntry.getFolderId() + "/" + fileEntry.getTitle() + "/" + fileEntry.getUuid() />
275 <div class="rt-box__thumb" aria-label="${altImg}" style="background-image: url('${fileUrl}');"></div>
276 <#else>
277 <i aria-hidden="true" class="far fa-bell"></i>
278 </#if>
279 <#else>
280 <i aria-hidden="true" class="far fa-bell"></i>
281 </#if>
282
283 </#if>
284 <#else>
285 <i aria-hidden="true" class="far fa-bell"></i>
286 </#if>
287 </#if>
288 </div>
289 </#if>
290
291 <#if TipologiaAggiornamento?? && TipologiaAggiornamento != "" && TipologiaAggiornamento?upper_case == 'AVVISO'>
292 <div class="rt-box__icon">
293 <div class="rt-box__icon-label">AVVISO</div>
294
295 <#if assetRenderer.getThumbnailPath(renderRequest)?? >
296 <div class="rt-box__thumb" style="background-image: url('${assetRenderer.getThumbnailPath(renderRequest)}');"></div>
297 <#else>
298 <#assign immagineCopertina = docXml.valueOf("//dynamic-element[@name='ImmagineCopertina']/dynamic-content/text()") />
299 <#if immagineCopertina?? && immagineCopertina != "">
300 <#assign json = jsonFactoryUtil.createJSONObject(immagineCopertina) />
301
302 <#assign nameImg = json.getString("name") />
303 <#assign fileEntryId = json.getLong("fileEntryId") />
304 <#assign altImg = json.getString("alt") />
305 <#assign fileUrl = "" />
306 <#assign uuiD = json.getString("uuid") />
307 <#assign groupId = json.getLong("groupId") />
308 <#if fileEntryId != 0>
309 <#assign fileEntry = DLFileEntryLocalServiceUtil.getFileEntry(fileEntryId) />
310 <#assign fileUrl = "/documents/" + fileEntry.getGroupId() + "/" + fileEntry.getFolderId() + "/" + fileEntry.getTitle() + "/" + fileEntry.getUuid() />
311 <div class="rt-box__thumb" aria-label="${altImg}" style="background-image: url('${fileUrl}');"></div>
312 <#else>
313 <#if groupId != 0 && uuiD != "">
314 <#assign fileEntry = DLFileEntryLocalServiceUtil.getFileEntryByUuidAndGroupId(uuiD,groupId) />
315
316 <#if fileEntry?? >
317 <#assign fileUrl = "/documents/" + fileEntry.getGroupId() + "/" + fileEntry.getFolderId() + "/" + fileEntry.getTitle() + "/" + fileEntry.getUuid() />
318 <div class="rt-box__thumb" aria-label="${altImg}" style="background-image: url('${fileUrl}');"></div>
319 <#else>
320 <i aria-hidden="true" class="far fa-bell"></i>
321 </#if>
322 <#else>
323 <i aria-hidden="true" class="far fa-bell"></i>
324 </#if>
325
326 </#if>
327 <#else>
328 <i aria-hidden="true" class="far fa-bell"></i>
329 </#if>
330 </#if>
331 </div>
332 </#if>
333
334 <#if TipologiaAggiornamento?? && TipologiaAggiornamento != "" && TipologiaAggiornamento?upper_case == 'PROGETTO'>
335 <div class="rt-box__icon">
336 <div class="rt-box__icon-label">PROGETTO</div>
337
338 <#if assetRenderer.getThumbnailPath(renderRequest)?? >
339 <div class="rt-box__thumb" style="background-image: url('${assetRenderer.getThumbnailPath(renderRequest)}');"></div>
340 <#else>
341 <#assign immagineCopertina = docXml.valueOf("//dynamic-element[@name='ImmagineCopertina']/dynamic-content/text()") />
342 <#if immagineCopertina?? && immagineCopertina != "">
343 <#assign json = jsonFactoryUtil.createJSONObject(immagineCopertina) />
344
345 <#assign nameImg = json.getString("name") />
346 <#assign fileEntryId = json.getLong("fileEntryId") />
347 <#assign altImg = json.getString("alt") />
348 <#assign fileUrl = "" />
349 <#assign uuiD = json.getString("uuid") />
350 <#assign groupId = json.getLong("groupId") />
351 <#if fileEntryId != 0>
352 <#assign fileEntry = DLFileEntryLocalServiceUtil.getFileEntry(fileEntryId) />
353 <#assign fileUrl = "/documents/" + fileEntry.getGroupId() + "/" + fileEntry.getFolderId() + "/" + fileEntry.getTitle() + "/" + fileEntry.getUuid() />
354 <div class="rt-box__thumb" aria-label="${altImg}" style="background-image: url('${fileUrl}');"></div>
355 <#else>
356 <#if groupId != 0 && uuiD != "">
357 <#assign fileEntry = DLFileEntryLocalServiceUtil.getFileEntryByUuidAndGroupId(uuiD,groupId) />
358
359 <#if fileEntry?? >
360 <#assign fileUrl = "/documents/" + fileEntry.getGroupId() + "/" + fileEntry.getFolderId() + "/" + fileEntry.getTitle() + "/" + fileEntry.getUuid() />
361 <div class="rt-box__thumb" aria-label="${altImg}" style="background-image: url('${fileUrl}');"></div>
362 <#else>
363 <i aria-hidden="true" class="far fa-ruler-triangle"></i>
364 </#if>
365 <#else>
366 <i aria-hidden="true" class="far fa-ruler-triangle"></i>
367 </#if>
368
369 </#if>
370 <#else>
371 <i aria-hidden="true" class="far fa-ruler-triangle"></i>
372 </#if>
373 </#if>
374 </div>
375 </#if>
376
377 <#if TipologiaAggiornamento?? && TipologiaAggiornamento != "" && TipologiaAggiornamento?upper_case == 'PUBBLICAZIONE'>
378 <div class="rt-box__icon">
379 <div class="rt-box__icon-label">PUBBLICAZIONE</div>
380
381 <#if assetRenderer.getThumbnailPath(renderRequest)?? >
382 <div class="rt-box__thumb" style="background-image: url('${assetRenderer.getThumbnailPath(renderRequest)}');"></div>
383 <#else>
384 <#assign immagineCopertina = docXml.valueOf("//dynamic-element[@name='ImmagineCopertina']/dynamic-content/text()") />
385 <#if immagineCopertina?? && immagineCopertina != "">
386 <#assign json = jsonFactoryUtil.createJSONObject(immagineCopertina) />
387
388 <#assign nameImg = json.getString("name") />
389 <#assign fileEntryId = json.getLong("fileEntryId") />
390 <#assign altImg = json.getString("alt") />
391 <#assign fileUrl = "" />
392 <#assign uuiD = json.getString("uuid") />
393 <#assign groupId = json.getLong("groupId") />
394 <#if fileEntryId != 0>
395 <#assign fileEntry = DLFileEntryLocalServiceUtil.getFileEntry(fileEntryId) />
396 <#assign fileUrl = "/documents/" + fileEntry.getGroupId() + "/" + fileEntry.getFolderId() + "/" + fileEntry.getTitle() + "/" + fileEntry.getUuid() />
397 <div class="rt-box__thumb" aria-label="${altImg}" style="background-image: url('${fileUrl}');"></div>
398 <#else>
399 <#if groupId != 0 && uuiD != "">
400 <#assign fileEntry = DLFileEntryLocalServiceUtil.getFileEntryByUuidAndGroupId(uuiD,groupId) />
401
402 <#if fileEntry?? >
403 <#assign fileUrl = "/documents/" + fileEntry.getGroupId() + "/" + fileEntry.getFolderId() + "/" + fileEntry.getTitle() + "/" + fileEntry.getUuid() />
404 <div class="rt-box__thumb" aria-label="${altImg}" style="background-image: url('${fileUrl}');"></div>
405 <#else>
406 <i aria-hidden="true" class="far fa-newspaper"></i>
407 </#if>
408 <#else>
409 <i aria-hidden="true" class="far fa-newspaper"></i>
410 </#if>
411
412 </#if>
413 <#else>
414 <i aria-hidden="true" class="far fa-newspaper"></i>
415 </#if>
416 </#if>
417 </div>
418 </#if>
419
420 <#if TipologiaAggiornamento?? && TipologiaAggiornamento != "" && TipologiaAggiornamento?upper_case == 'DELIBERA'>
421 <div class="rt-box__icon">
422 <div class="rt-box__icon-label">DELIBERA</div>
423
424 <#if assetRenderer.getThumbnailPath(renderRequest)?? >
425 <div class="rt-box__thumb" style="background-image: url('${assetRenderer.getThumbnailPath(renderRequest)}');"></div>
426 <#else>
427 <#assign immagineCopertina = docXml.valueOf("//dynamic-element[@name='ImmagineCopertina']/dynamic-content/text()") />
428 <#if immagineCopertina?? && immagineCopertina != "">
429 <#assign json = jsonFactoryUtil.createJSONObject(immagineCopertina) />
430
431 <#assign nameImg = json.getString("name") />
432 <#assign fileEntryId = json.getLong("fileEntryId") />
433 <#assign altImg = json.getString("alt") />
434 <#assign fileUrl = "" />
435 <#assign uuiD = json.getString("uuid") />
436 <#assign groupId = json.getLong("groupId") />
437 <#if fileEntryId != 0>
438 <#assign fileEntry = DLFileEntryLocalServiceUtil.getFileEntry(fileEntryId) />
439 <#assign fileUrl = "/documents/" + fileEntry.getGroupId() + "/" + fileEntry.getFolderId() + "/" + fileEntry.getTitle() + "/" + fileEntry.getUuid() />
440 <div class="rt-box__thumb" aria-label="${altImg}" style="background-image: url('${fileUrl}');"></div>
441 <#else>
442 <#if groupId != 0 && uuiD != "">
443 <#assign fileEntry = DLFileEntryLocalServiceUtil.getFileEntryByUuidAndGroupId(uuiD,groupId) />
444
445 <#if fileEntry?? >
446 <#assign fileUrl = "/documents/" + fileEntry.getGroupId() + "/" + fileEntry.getFolderId() + "/" + fileEntry.getTitle() + "/" + fileEntry.getUuid() />
447 <div class="rt-box__thumb" aria-label="${altImg}" style="background-image: url('${fileUrl}');"></div>
448 <#else>
449 <i aria-hidden="true" class="far fa-file-certificate"></i>
450 </#if>
451 <#else>
452 <i aria-hidden="true" class="far fa-file-certificate"></i>
453 </#if>
454
455 </#if>
456 <#else>
457 <i aria-hidden="true" class="far fa-file-certificate"></i>
458 </#if>
459 </#if>
460 </div>
461 </#if>
462 <#else>
463 <div class="rt-box__icon">
464 <#if assetRenderer.getThumbnailPath(renderRequest)?? >
465 <div class="rt-box__thumb" style="background-image: url('${assetRenderer.getThumbnailPath(renderRequest)}');"></div>
466 <#else>
467 <#assign immagineCopertina = docXml.valueOf("//dynamic-element[@name='ImmagineCopertina']/dynamic-content/text()") />
468 <#if immagineCopertina?? && immagineCopertina != "">
469 <#assign json = jsonFactoryUtil.createJSONObject(immagineCopertina) />
470
471 <#assign nameImg = json.getString("name") />
472 <#assign fileEntryId = json.getLong("fileEntryId") />
473 <#assign altImg = json.getString("alt") />
474 <#assign fileUrl = "" />
475 <#assign uuiD = json.getString("uuid") />
476 <#assign groupId = json.getLong("groupId") />
477 <#if fileEntryId != 0>
478 <#assign fileEntry = DLFileEntryLocalServiceUtil.getFileEntry(fileEntryId) />
479 <#assign fileUrl = "/documents/" + fileEntry.getGroupId() + "/" + fileEntry.getFolderId() + "/" + fileEntry.getTitle() + "/" + fileEntry.getUuid() />
480 <div class="rt-box__thumb" aria-label="${altImg}" style="background-image: url('${fileUrl}');"></div>
481 <#else>
482 <#if groupId != 0 && uuiD != "">
483 <#assign fileEntry = DLFileEntryLocalServiceUtil.getFileEntryByUuidAndGroupId(uuiD,groupId) />
484
485 <#if fileEntry?? >
486 <#assign fileUrl = "/documents/" + fileEntry.getGroupId() + "/" + fileEntry.getFolderId() + "/" + fileEntry.getTitle() + "/" + fileEntry.getUuid() />
487 <div class="rt-box__thumb" aria-label="${altImg}" style="background-image: url('${fileUrl}');"></div>
488 </#if>
489 </#if>
490
491 </#if>
492 </#if>
493 </#if>
494 </div>
495 </#if>
496 </div>
497 </div>
498
499 <div class="rt-box__text">
500 <#assign summaryText = curEntry.getSummary(locale)?replace("</strong>","")?replace("<storng>","")?replace("<strong>","")?replace("</strong>", "") />
501 <#if summaryText?? && summaryText?has_content>
502 <#if (summaryText?length > 200) >
503 <#assign summaryText = summaryText?substring(0,200) />
504 <#assign summaryText = summaryText + "..." />
505 </#if>
506 ${summaryText}
507 <#else>
508 <#assign TitoloSecondario = docXml.valueOf("//dynamic-element[@name='TitoloSecondario']/dynamic-content/text()") />
509 <#if TitoloSecondario?? && TitoloSecondario?has_content >
510 <#if (TitoloSecondario?length > 200) >
511 <#assign TitoloSecondario = TitoloSecondario?substring(0,200) />
512 <#assign TitoloSecondario = TitoloSecondario + "..." />
513 </#if>
514 <p>${TitoloSecondario}</p>
515 </#if>
516 </#if>
517 </div>
518
519 <div class="rt-box__footer">
520 <#if article.modifiedDate?? && article.modifiedDate?has_content>
521 <div class="rt-box__date-published">Aggiornato al ${article.modifiedDate?string["dd.MM.yyyy"]}</div>
522 </#if>
523 <#if article.expirationDate?? && article.expirationDate?has_content>
524 <div class="rt-box__date-expires">Scade il ${article.expirationDate?string["dd.MM.yyyy"]}</div>
525 </#if>
526 </div>
527 </div>
528 </#if>
529 </#if>
530 </#list>
531 </#if>
532 </div>
533 </section>
534 </div>
535</#if>