Asset Publisher

An error occurred while processing the template.
The following has evaluated to null or missing:
==> immagine_banner  [in template "20099#20135#33907" at line 78, column 22]

----
Tip: If the failing expression is known to be 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 urlBanner = immagine_banner.g...  [in template "20099#20135#33907" at line 78, column 1]
----
1<#--EVENTO 09022024--> 
2<#assign structureService = serviceLocator.findService("it.inera.structure.service.StructureService")> 
3 
4<#assign eventoStructureKey = structureService.getStructureEventoKey()> 
5<#assign eventoStructureId = structureService.getStructureEventoId()> 
6 
7<#assign attrattoreStructureKey = structureService.getStructureAttrattoreKey()> 
8<#assign attrattoreStructureId = structureService.getStructureAttrattoreId()> 
9 
10<#assign elasticService = serviceLocator.findService("it.inera.elastic.service.ElasticService")> 
11<#assign journalArticleId = .vars['reserved-article-id'].data/> 
12 
13<#assign journalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService") /> 
14<#assign assetCategoryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetCategoryLocalService")> 
15<#assign assetEntryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryLocalService") /> 
16<#assign journalArticleConverter = serviceLocator.findService("it.inera.journalarticleconverter.service.JournalArticleConverter")> 
17 
18<#assign vocabularyIdUmbria = structureService.getVocabularyIdByVocabularyName("Vocabolario Umbria") > 
19<#assign vocabularyIdEventi = structureService.getVocabularyIdByVocabularyName("Eventi") > 
20 
21 
22<#if coordinate_principali.getData()?has_content && coordinate_principali.getData()?trim?length gt 0 > 
23	<#assign coordinatePrincipaliJson = coordinate_principali.getData()?eval > 
24	<#if coordinatePrincipaliJson.latitude?has_content && coordinatePrincipaliJson.latitude?trim?length gt 0 > 
25		<#assign latitude = coordinatePrincipaliJson.latitude?c > 
26	</#if> 
27	<#if coordinatePrincipaliJson.longitude?has_content && coordinatePrincipaliJson.longitude?trim?length gt 0 > 
28		<#assign longitude = coordinatePrincipaliJson.longitude?c > 
29	</#if> 
30<#else> 
31	<#assign latitude = "" > 
32	<#assign longitude = "" > 
33</#if> 
34 
35<#assign currentArticle = journalArticleLocalService.getArticle(groupId, journalArticleId) /> 
36 
37<#-- GESTIONE ASSET LINGUA DI DEFAULT --> 
38<#assign currentObjectDefaultLanguage = journalArticleConverter.getEvento(currentArticle, localeUtil.getDefault())> 
39 
40<#assign titolo1 = "" /> 
41 
42<#if currentArticle.getExpandoBridge()?? && currentArticle.getExpandoBridge().getAttribute("titolo_fascia_1")?has_content> 
43	<#assign titolo1_custom_field = currentArticle.getExpandoBridge().getAttribute("titolo_fascia_1") /> 
44	<#list titolo1_custom_field?keys as key> 
45		<#if key == locale> 
46			<#assign titolo1 = titolo1_custom_field?values[key_index] /> 
47		</#if> 
48	</#list> 
49</#if> 
50 
51<#assign currentArticleResourcePrimKey = currentArticle.getResourcePrimKey() /> 
52<#assign currentArticleAssetEntry = assetEntryLocalService.getEntry("com.liferay.journal.model.JournalArticle", currentArticleResourcePrimKey) /> 
53<#assign currentArticleAssetEntryId = currentArticleAssetEntry.getEntryId() /> 
54 
55<#assign categoryList = assetCategoryLocalService.getAssetEntryAssetCategories(currentArticleAssetEntryId) > 
56 
57<#assign categoryListIds = [] > 
58 
59<#list categoryList as category> 
60	<#assign categoryListIds = categoryListIds + [category.getCategoryId()]> 
61</#list> 
62 
63<#assign attrattoresByCoord = elasticService.getRelatedArticlesOrderByPriority(themeDisplay, latitude, longitude, distanza.getData(), attrattoreStructureKey, attrattoreStructureId?c, locale, "6", null , null, journalArticleId, null, null, null) /> 
64 
65<#assign dateToday = .now?long /> 
66<#assign next15Days = dateToday + (15 * 24 * 60 * 60 * 1000) /> 
67 
68<#assign startDate = dateToday?number_to_date?string("yyyyMMdd") + "0000000"> 
69<#assign endDate = next15Days?number_to_date?string("yyyyMMdd") + "0000000" > 
70 
71<#assign eventsrelated = elasticService.getRelatedArticlesOrderByPriority(themeDisplay, eventoStructureKey, eventoStructureId?c, locale, "6", null , categoryListIds, journalArticleId, startDate, endDate, true) /> 
72 
73<#assign widthBannerImg = propsUtil.get("image.scale.fullpage") /> 
74<#assign widthSliderImg = propsUtil.get("image.slider.testobarra.height") /> 
75<#assign widthRelatedImg = propsUtil.get("image.proplista.height") /> 
76<#assign widthCardImg = propsUtil.get("image.scale.allpage") /> 
77 
78<#assign urlBanner = immagine_banner.getData() > 
79<#assign testAlternativoImmagineBanner = testo_alternativo_immagine_banner.getData() > 
80<#attempt> 
81	<#if currentObjectDefaultLanguage?? && currentObjectDefaultLanguage?has_content && currentObjectDefaultLanguage.getImmagineBanner()?has_content> 
82		<#assign urlBanner = currentObjectDefaultLanguage.getImmagineBanner().getUrl() > 
83	</#if> 
84	<#if currentObjectDefaultLanguage?? && currentObjectDefaultLanguage?has_content && currentObjectDefaultLanguage.getTestoAlternativoImmagineBanner()?has_content> 
85		<#assign testAlternativoImmagineBanner = currentObjectDefaultLanguage.getTestoAlternativoImmagineBanner() > 
86	</#if> 
87	<#recover> 
88		<#assign urlBanner = immagine_banner.getData() > 
89		<#assign testAlternativoImmagineBanner = testo_alternativo_immagine_banner.getData() > 
90</#attempt> 
91 
92<#assign titleCategory = ""> 
93<#assign titleParentCategory = ""> 
94<#attempt> 
95	<#list categoryList as category> 
96		<#if vocabularyIdEventi == category.getVocabularyId() > 
97			<#assign titleCategory = category.getTitle(themeDisplay.getLocale())> 
98			<#assign parentCategoryId = category.getParentCategoryId()> 
99			<span class="hidden" id="tagmanager_init_pagegroup">Eventi</span> 
100			<span class="hidden" id="tagmanager_init_pagecategory">${titleCategory}</span> 
101		</#if> 
102	</#list> 
103	<#recover> 
104</#attempt> 
105 
106<#assign hasImage = 0> 
107<#if urlBanner?? && urlBanner?has_content> 
108<assign hasImage = 1> 
109	<div class="container-fluid"> 
110		<div class="row"> 
111			<div class="header-block header-block-1 padding-top-em-5 padding-bottom-em-5 header-block-image-main"> 
112				<img class="bg" src="${urlBanner}?width=${widthBannerImg}" alt="${testAlternativoImmagineBanner}"> 
113				<div class="container title title-main"> 
114					<div class="row"> 
115						<div class="col-12"></div> 
116					</div> 
117				</div> 
118			</div> 
119			<div class="map map-container map-container-header hidden"> 
120				<div class="map-content"> 
121					<div class="leaflet-interactive-map map-summary-results" id="header-map" data-results="${themeDisplay.getPortalURL()}/o/geolocation/get-positions?articleId=${journalArticleId}" data-config="{&quot;clustering&quot;:true}"></div> 
122				</div> 
123			</div> 
124		</div> 
125	</div> 
126	</#if> 
127 
128	<#if hasImage?? && hasImage==1> 
129	<div class="container-fluid bg-white"> 
130		<#else> 
131		<div class="container-fluid bg-white"> 
132			</#if> 
133			<div class="row"> 
134				<article class="container bridge bg-white translate-top-md-rem-5 translate-top-lg-rem-10"> 
135					<div class="row"> 
136						<div class="col-12"> 
137 
138							<div class="text-left link-back-container margin-left-rem-1"><a class="link-1 link-back margin-top-em-2 padding-left-rem-1" id="backLink" href="#"><i class="im im-angle-left"></i><span class="hidden display-inline-lg"><@liferay.language key="label.indietro" /></span></a></div> 
139 
140							<div class="text-center padding-top-em-2"> 
141								<div class="link-1 link-toggle-map" data-target="#header-map" style="color: #000;"><@liferay.language key="label.visualizza.sulla.mappa" /></div> 
142							</div> 
143							<div class="link-tripplanner-container"> 
144								<#assign currentUrl = themeDisplay.getPortalURL() + themeDisplay.getURLCurrent() /> 
145								<a data-id="${journalArticleId}" class="link link-tripplanner link-tripplanner-extended link-tripplanner-top-right margin-right-em-1 padding-right-rem-1" href="${currentUrl}" data-tom="false"> 
146									<i class="far fa-heart text-red"></i> 
147									<i class="fas fa-heart text-red" style="display:none"></i> 
148									<span class="label hidden display-lg"><@liferay.language key="label.aggiungi.al.mio.viaggio" /></span> 
149								</a> 
150							</div> 
151						</div> 
152						<div class="col-12 col-md-10 offset-md-1"> 
153							<div class="text-block text-block-center"> 
154								<h1 class="title-2 margin-top-em-0">${titolo.getData()}</h1> 
155								<div class="text"></div> 
156							</div> 
157						</div> 
158 
159						<div class="row padding-left-md-em-1 padding-right-md-em-1 padding-left-lg-em-4 padding-right-lg-em-4"> 
160							<div class="col-12 col-md-8 padding-right-md-em-5"> 
161								<div class="text-block text-block-center"> 
162									<div class="text text-block-left">${descrizione.getData()}</div> 
163								</div> 
164 
165								<#if descrizione_immagine?? && descrizione_immagine.getSiblings()?has_content && descrizione_immagine.getSiblings()?size gt 0 && descrizione_immagine.getSiblings()[0].immagine.getData()?? && descrizione_immagine.getSiblings()[0].immagine.getData()?has_content> 
166									<div class="carousel-container carousel-no-ctrl transparent margin-top-em-1 margin-bottom-em-1 carousel-image-slide carousel-draggable"> 
167										<div class="tns-carousel tns-carousel-no-ctrl" data-tns-config="{&quot;items&quot;:1,&quot;autoplay&quot;:true,&quot;autoplayHoverPause&quot;:true}"> 
168											<#if descrizione_immagine?? && descrizione_immagine.getData()?has_content> 
169												<#list descrizione_immagine.getSiblings() as cur_descrizione_immagine> 
170													<div class="item-with-caption"> 
171														<img class="slide-image w-100" src="${cur_descrizione_immagine.immagine.getData()}?width=${widthSliderImg}" alt="${cur_descrizione_immagine.testo_alternativo.getData()}"> 
172														<#if cur_descrizione_immagine.didascalia.getData()?? && cur_descrizione_immagine.didascalia.getData()?has_content && cur_descrizione_immagine.didascalia.getData()?trim?length gt 0 && cur_descrizione_immagine.didascalia.getData()?trim != "null"> 
173															<p class="caption">${cur_descrizione_immagine.didascalia.getData()}</p> 
174														</#if> 
175													</div> 
176												</#list> 
177											</#if> 
178										</div> 
179									</div> 
180								<#else> 
181									<#attempt> 
182										<#if currentObjectDefaultLanguage?? && currentObjectDefaultLanguage?has_content && currentObjectDefaultLanguage.getImmagini()?has_content> 
183											<div class="carousel-container carousel-no-ctrl transparent margin-top-em-1 margin-bottom-em-1 carousel-image-slide carousel-draggable"> 
184												<div class="tns-carousel tns-carousel-no-ctrl" data-tns-config="{&quot;items&quot;:1,&quot;autoplay&quot;:true,&quot;autoplayHoverPause&quot;:true}"> 
185													<#list currentObjectDefaultLanguage.getImmagini() as imm> 
186														<div class="item-with-caption"> 
187															<#if imm.getImmagine()?? && imm.getImmagine()?has_content && imm.getImmagine().getUrl()?? && imm.getImmagine().getUrl()?has_content> 
188																<img class="slide-image w-100" src="${imm.getImmagine().getUrl()}?width=${widthSliderImg}" alt="${imm.getTestoAlternativo()}"> 
189																<#if imm.getDidascalia()?? && imm.getDidascalia()?has_content && imm.getDidascalia()?trim?length gt 0 && imm.getDidascalia()?trim != "null"> 
190																	<p class="caption">${imm.getDidascalia()}</p> 
191																</#if> 
192															</#if> 
193														</div> 
194													</#list> 
195												</div> 
196											</div> 
197										</#if> 
198										<#recover> 
199 
200									</#attempt> 
201								</#if> 
202 
203								<div class="text-block text-block-center"> 
204									<div class="text text-block-left">${descrizione_due.getData()}</div> 
205								</div> 
206							</div> 
207 
208							<aside class="col-12 col-md-4"> 
209								<div class="sidebar sidebar-border padding-top-em-4 padding-bottom-em-4 padding-top-md-em-0 padding-bottom-md-em-0"> 
210									<#if comune?? && comune.getData()?has_content> 
211										<div class="text-block text-block-sidebar text-block-left"> 
212											<div class="title-2"> 
213												<i class="fas fa-map-pin"></i> 
214												<span class="padding-left-em-1"><@liferay.language key="label.dove" /></span> 
215											</div> 
216											<#list comune.getSiblings() as cur_comune> 
217												<#if cur_comune.getData()?? && cur_comune.getData()?has_content && cur_comune.getData()?trim?length gt 0 > 
218													<div class="text"> 
219														${cur_comune.getData()} 
220														<#if cur_comune.via_piazza.getData()?? && cur_comune.via_piazza.getData()?has_content && cur_comune.via_piazza.getData()?trim?length gt 0 && cur_comune.via_piazza.getData()?trim != "null"> 
221															${cur_comune.via_piazza.getData()} 
222														</#if> 
223														<#if cur_comune.cap.getData()?? && cur_comune.cap.getData()?has_content && cur_comune.cap.getData()?trim?length gt 0 && cur_comune.cap.getData()?trim != "null"> 
224															${cur_comune.cap.getData()} 
225														</#if> 
226													</div> 
227												</#if> 
228											</#list> 
229										</div> 
230									</#if> 
231									<#if data.getSiblings()?has_content> 
232										<div class="text-block text-block-sidebar text-block-left"> 
233											<div class="title-2"> 
234												<i class="far fa-calendar"></i> 
235												<span class="padding-left-em-1"><@liferay.language key="label.quando" /></span> 
236											</div> 
237											<#assign dataDa = "" /> 
238											<#assign dataA = "" /> 
239 
240											<#list data.getSiblings() as cur_data> 
241												<#assign dataDaT = cur_data.data_da.getData()> 
242												<#if dataDaT?has_content && dataDaT?trim?length gt 0 > 
243													<#assign dataDa = dataDaT /> 
244												</#if> 
245												<#assign dataAT = cur_data.data_a.getData()> 
246												<#if dataAT?has_content && dataAT?trim?length gt 0 > 
247													<#assign dataA = dataAT /> 
248												</#if> 
249											</#list> 
250 
251											<#if dataDa?has_content && dataDa?trim?length gt 0 > 
252												<#assign dataDa = dataDa?trim /> 
253												<#assign dataDaDateObj = dateUtil.parseDate("yyyy-MM-dd", dataDa, locale)> 
254												<#assign dataDa = dateUtil.getDate(dataDaDateObj, "dd/MM/yyyy", locale) /> 
255											</#if> 
256 
257											<#if dataA?has_content && dataA?trim?length gt 0 > 
258												<#assign dataA = dataA?trim /> 
259												<#assign dataADateObj = dateUtil.parseDate("yyyy-MM-dd", dataA, locale)> 
260												<#assign dataA = dateUtil.getDate(dataADateObj, "dd/MM/yyyy", locale) /> 
261											</#if> 
262											<div class="text">${dataDa} - ${dataA}</div> 
263										</div> 
264									</#if> 
265									<#if fascia_di_prezzo?? && fascia_di_prezzo.getData()?has_content && fascia_di_prezzo.getSiblings()?has_content> 
266										<div class="text-block text-block-sidebar text-block-left"> 
267											<div class="title-2"> 
268												<i class="fas fa-money-bill-wave"></i> 
269												<span class="padding-left-em-1"><@liferay.language key="label.costo" /></span> 
270											</div> 
271											<#list fascia_di_prezzo.getSiblings() as fascia_di_prezzo_cur> 
272												<#if fascia_di_prezzo_cur.getData()?? && fascia_di_prezzo_cur.getData()?has_content> 
273													<div class="text">${fascia_di_prezzo_cur.getData()} ${fascia_di_prezzo_cur.valore.getData()}</div> 
274												</#if> 
275											</#list> 
276										</div> 
277									</#if> 
278								</div> 
279							</aside> 
280						</div> 
281					</div> 
282				</article> 
283			</div> 
284		</div> 
285 
286 
287		<#if eventsrelated?has_content > 
288			<div class="container-fluid bg-gray"> 
289				<div class="row"> 
290					<div class="container padding-top-em-4 padding-bottom-em-5"> 
291						<div class="row"> 
292							<div class="col-12"> 
293								<div class="d-flex flex-justify-content-between flex-align-items-baseline"> 
294									<#assign site_eventi_custom_field = layout.getGroup().getExpandoBridge().getAttribute("eventi") /> 
295									<#assign value_eventi = "" /> 
296									<#list site_eventi_custom_field?keys as key> 
297										<#if key == locale> 
298											<#assign value_eventi = site_eventi_custom_field?values[key_index] /> 
299										</#if> 
300									</#list> 
301 
302									<div class="text text-top-events"> 
303										<@liferay.language key="label.ti.potrebbe.interessare" />: 
304									</div> 
305									<a class="link-showall" href="${value_eventi}"><@liferay.language key="label.vedi.tutti" /> 
306										<svg class="svg-inline--fa fa-angle-right fa-w-8" aria-hidden="true" focusable="false" data-prefix="fas" data-icon="angle-right" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 512" data-fa-i2svg=""> 
307											<path fill="currentColor" d="M224.3 273l-136 136c-9.4 9.4-24.6 9.4-33.9 0l-22.6-22.6c-9.4-9.4-9.4-24.6 0-33.9l96.4-96.4-96.4-96.4c-9.4-9.4-9.4-24.6 0-33.9L54.3 103c9.4-9.4 24.6-9.4 33.9 0l136 136c9.5 9.4 9.5 24.6.1 34z"></path> 
308										</svg> 
309									</a> 
310								</div> 
311							</div> 
312							<div class="col-12"> 
313								<div class="carousel-container carousel-no-ctrl transparent margin-top-em-1 tns-overflow-show carousel-draggable carousel-desktop-disabled"> 
314									<div class="tns-carousel tns-carousel-no-ctrl" data-tns-config="{&quot;disable&quot;:false,&quot;responsive&quot;:{&quot;768&quot;:{&quot;items&quot;:2},&quot;991&quot;:{&quot;disable&quot;:true}}}"> 
315										<#list eventsrelated as related> 
316											<#assign langId = themeDisplay.getLanguageId() /> 
317											<#assign contentByLocale = related.getContentByLocale(themeDisplay.getLanguageId()) /> 
318											<#assign document = saxReaderUtil.read(contentByLocale) > 
319											<#assign rootElement = document.getRootElement()> 
320 
321											<#assign xPathTitolo = saxReaderUtil.createXPath("dynamic-element[@name='titolo']")> 
322											<#assign relatedTitolo = xPathTitolo.selectSingleNode(rootElement).getStringValue()> 
323 
324											<#assign xPathImmagineBanner = saxReaderUtil.createXPath("dynamic-element[@name='immagine_banner']")> 
325											<#assign relatedImmagineBanner = "" > 
326 
327											<#if xPathImmagineBanner?? && xPathImmagineBanner?has_content> 
328												<#if xPathImmagineBanner.selectSingleNode(rootElement)?? && xPathImmagineBanner.selectSingleNode(rootElement)?has_content> 
329													<#assign relatedImmagineBanner = xPathImmagineBanner.selectSingleNode(rootElement).getStringValue()> 
330												</#if> 
331											</#if> 
332 
333											<#assign xPathTestoAlternativoImmagineBanner = saxReaderUtil.createXPath("dynamic-element[@name='testo_alternativo_immagine_banner']")> 
334											<#assign relatedTestoAlternativoImmagineBanner = "" > 
335											<#if xPathTestoAlternativoImmagineBanner?? && xPathTestoAlternativoImmagineBanner?has_content> 
336												<#if xPathTestoAlternativoImmagineBanner.selectSingleNode(rootElement)?? && xPathTestoAlternativoImmagineBanner.selectSingleNode(rootElement)?has_content> 
337													<#assign relatedTestoAlternativoImmagineBanner = xPathTestoAlternativoImmagineBanner.selectSingleNode(rootElement).getStringValue()> 
338												</#if> 
339											</#if> 
340 
341											<#assign url = "" > 
342											<#if relatedImmagineBanner?? && relatedImmagineBanner?has_content && relatedImmagineBanner?trim?length gt 0 > 
343												<#attempt> 
344													<#assign immagineBannerJson = relatedImmagineBanner?eval > 
345													<#assign url = "/documents/${immagineBannerJson.groupId}/${immagineBannerJson.classPK}/${immagineBannerJson.title}/${immagineBannerJson.uuid}?width=${widthRelatedImg}"> 
346													<#recover> 
347 
348												</#attempt> 
349											<#else> 
350												<#assign url = "" > 
351											</#if> 
352 
353											<#assign resourcePrimKey = related.getResourcePrimKey() /> 
354											<#assign assetEntry = assetEntryLocalService.getEntry("com.liferay.journal.model.JournalArticle", resourcePrimKey) /> 
355											<#assign assetEntryId = assetEntry.getEntryId() /> 
356 
357											<#assign categories = assetCategoryLocalService.getAssetEntryAssetCategories(assetEntryId) > 
358 
359											<#assign categoryNames = [] > 
360 
361											<#list categories as category> 
362												<#if vocabularyIdUmbria == category.getVocabularyId() > 
363													<#assign categoryNames = categoryNames + [category.getTitle(themeDisplay.getLanguageId())] > 
364												</#if> 
365											</#list> 
366 
367											<#assign xPathData = saxReaderUtil.createXPath("dynamic-element[@name='data']")> 
368											<#assign xPathDataDa = saxReaderUtil.createXPath("dynamic-element[@name='data_da']")> 
369											<#assign xPathDataA = saxReaderUtil.createXPath("dynamic-element[@name='data_a']")> 
370											<#assign relatedDatas = xPathData.selectNodes(rootElement)> 
371 
372											<#assign relatedDataDa = "" /> 
373											<#assign relatedDataA = "" /> 
374 
375											<#list relatedDatas as relatedData> 
376												<#assign relatedDataDaT = xPathDataDa.selectSingleNode(relatedData).getStringValue()> 
377												<#if relatedDataDaT?has_content && relatedDataDaT?trim?length gt 0 > 
378													<#assign relatedDataDa = relatedDataDaT /> 
379												</#if> 
380												<#assign relatedDataAT = xPathDataA.selectSingleNode(relatedData).getStringValue()> 
381												<#if relatedDataAT?has_content && relatedDataAT?trim?length gt 0 > 
382													<#assign relatedDataA = relatedDataAT /> 
383												</#if> 
384											</#list> 
385 
386											<#if relatedDataDa?has_content && relatedDataDa?trim?length gt 0 > 
387												<#assign relatedDataDa = relatedDataDa?trim /> 
388												<#assign relatedDataDaDateObj = dateUtil.parseDate("yyyy-MM-dd", relatedDataDa, locale)> 
389												<#assign relatedDataDa = dateUtil.getDate(relatedDataDaDateObj, "dd/MM/yyyy", locale) /> 
390											</#if> 
391 
392											<#if relatedDataA?has_content && relatedDataA?trim?length gt 0 > 
393												<#assign relatedDataA = relatedDataA?trim /> 
394												<#assign relatedDataADateObj = dateUtil.parseDate("yyyy-MM-dd", relatedDataA, locale)> 
395												<#assign relatedDataA = dateUtil.getDate(relatedDataADateObj, "dd/MM/yyyy", locale) /> 
396											</#if> 
397 
398											<div> 
399												<div class="card card-horizontal card-event-1 card-event-default"> 
400													<a class="card-link" href="/-/${related.getUrlTitle()}"></a> 
401													<span class="card-row"> 
402    			         						<span class="card-image aspect-ratio card-item-first" href="/-/${related.getUrlTitle()}"> 
403    			         							<img class="aspect-ratio-item aspect-ratio-item-center-ceil aspect-ratio-item-fluid" src="${url}" alt="${relatedTestoAlternativoImmagineBanner}"> 
404    			         						</span> 
405        	                                    <button data-id="${related.getArticleId()}" data-tom="false" class="link link-tripplanner link-tripplanner-1 link-tripplanner-top-right margin-top-em-2 margin-right-em-1" data-tom="false"> 
406            	                          	        <i class="far fa-heart text-red"></i><i class="fas fa-heart text-red" style="display:none"></i> 
407            	                                </button> 
408    			         						<span class="card-body"> 
409    				                    			<div class="row"> 
410    					                      			<div class="col-12"> 
411    					                      				<#list categoryNames as categoryName> 
412																<div class="badge badge-red">${categoryName}</div><a class="header-title title-5" href="#"></a> 
413															</#list> 
414    					                      			</div> 
415    					                      			<div class="col-12"> 
416    					                      				<span class="card-subtitle title-6"> 
417    					                      					<i class="far fa-calendar"></i>${relatedDataDa} - ${relatedDataA} 
418    					                      				</span> 
419    					                      			</div> 
420    					                      			<div class="col-12"> 
421    					                      				<span class="card-title">${relatedTitolo}</span> 
422    					                       			</div> 
423    				                     			</div> 
424    			                    			</span> 
425    			                  			</span> 
426												</div> 
427											</div> 
428											<#assign relatedDataDa = "" /> 
429											<#assign relatedDataA = "" /> 
430										</#list> 
431									</div> 
432								</div> 
433							</div> 
434						</div> 
435					</div> 
436				</div> 
437			</div> 
438		</#if> 
439 
440		<#if attrattoresByCoord?? && attrattoresByCoord?has_content && attrattoresByCoord?size gt 0 > 
441			<aside class="container-fluid bg-white"> 
442				<div class="row"> 
443					<div class="container"> 
444						<div class="row"> 
445							<div class="col-12 col-md-10 offset-md-1"> 
446								<div class="text-block text-block-center"> 
447									<div class="title-2"> 
448										<#if titolo1?has_content && titolo1?trim?length gt 0 > 
449											${titolo1} 
450										<#else> 
451											<@liferay.language key="label.nei.dintorni" /> 
452										</#if> 
453									</div> 
454								</div> 
455							</div> 
456						</div> 
457 
458						<div class="row"> 
459							<div class="col-12"> 
460								<div class="row"> 
461									<div class="col-12 padding-bottom-em-3"> 
462										<div class="carousel-container transparent margin-top-em-1 margin-bottom-em-2"> 
463											<div class="tns-carousel tns-carousel-default"> 
464												<#list attrattoresByCoord as relatedCoord> 
465													<#assign langId = themeDisplay.getLanguageId() /> 
466													<#assign contentByLocale = relatedCoord.getContentByLocale(themeDisplay.getLanguageId()) /> 
467													<#assign document = saxReaderUtil.read(contentByLocale) > 
468													<#assign rootElement = document.getRootElement()> 
469 
470													<#assign xPathTitolo = saxReaderUtil.createXPath("dynamic-element[@name='titolo']")> 
471													<#assign relatedTitolo = xPathTitolo.selectSingleNode(rootElement).getStringValue()> 
472 
473													<#assign xPathSottotitolo = saxReaderUtil.createXPath("dynamic-element[@name='sottotitolo']")> 
474													<#assign relatedSottotitolo = xPathTitolo.selectSingleNode(rootElement).getStringValue()> 
475 
476													<#assign xPathImmagineBanner = saxReaderUtil.createXPath("dynamic-element[@name='immagine_banner']")> 
477													<#assign relatedImmagineBanner = "" > 
478 
479													<#if xPathImmagineBanner?? && xPathImmagineBanner?has_content> 
480														<#if xPathImmagineBanner.selectSingleNode(rootElement)?? && xPathImmagineBanner.selectSingleNode(rootElement)?has_content> 
481															<#assign relatedImmagineBanner = xPathImmagineBanner.selectSingleNode(rootElement).getStringValue()> 
482														</#if> 
483													</#if> 
484 
485													<#assign xPathTestoAlternativoImmagineBanner = saxReaderUtil.createXPath("dynamic-element[@name='testo_alternativo_immagine_banner']")> 
486													<#assign relatedTestoAlternativoImmagineBanner = "" > 
487													<#if xPathTestoAlternativoImmagineBanner?? && xPathTestoAlternativoImmagineBanner?has_content> 
488														<#if xPathTestoAlternativoImmagineBanner.selectSingleNode(rootElement)?? && xPathTestoAlternativoImmagineBanner.selectSingleNode(rootElement)?has_content> 
489															<#assign relatedTestoAlternativoImmagineBanner = xPathTestoAlternativoImmagineBanner.selectSingleNode(rootElement).getStringValue()> 
490														</#if> 
491													</#if> 
492 
493													<#if relatedImmagineBanner?has_content && relatedImmagineBanner?trim?length gt 0 > 
494														<#assign immagineBannerJson = relatedImmagineBanner?eval > 
495														<#assign url = "/documents/${immagineBannerJson.groupId}/${immagineBannerJson.classPK}/${immagineBannerJson.title}/${immagineBannerJson.uuid}?width=${widthCardImg}"> 
496													<#else> 
497														<#assign url = "" > 
498													</#if> 
499 
500													<#assign resourcePrimKey = relatedCoord.getResourcePrimKey() /> 
501													<#assign assetEntry = assetEntryLocalService.getEntry("com.liferay.journal.model.JournalArticle", resourcePrimKey) /> 
502													<#assign assetEntryId = assetEntry.getEntryId() /> 
503 
504													<#assign categories = assetCategoryLocalService.getAssetEntryAssetCategories(assetEntryId) > 
505 
506													<#assign categoryNames = [] > 
507 
508													<#list categories as category> 
509														<#if vocabularyIdUmbria == category.getVocabularyId() > 
510															<#assign categoryNames = categoryNames + [category.getTitle(themeDisplay.getLanguageId())] > 
511														</#if> 
512													</#list> 
513 
514													<div> 
515														<div class="card card-1 card-offerta"> 
516															<a class="card-link" href="/-/${relatedCoord.getUrlTitle()}"></a> 
517															<div class="card-header"> 
518																<div class="card-header-bg aspect-ratio aspect-ratio-4-3"> 
519																	<img src="${url}" alt="${relatedTestoAlternativoImmagineBanner}"> 
520																</div> 
521																<button data-id="${relatedCoord.getArticleId()}" data-tom="false" class="link link-tripplanner link-tripplanner-1 link-tripplanner-top-right margin-top-em-2 margin-right-em-1" data-tom="false"> 
522																	<i class="far fa-heart text-red"></i><i class="fas fa-heart text-red" style="display:none"></i> 
523																</button> 
524																<div class="card-header-info"> 
525																	<div class="card-badges"> 
526																		<#list categoryNames as categoryName> 
527																			<div class="badge badge-red"> 
528																				${categoryName} 
529																			</div> 
530																			<div class="hidden" id="tagmanager_item"> 
531																				<span id="tagmanager_item_id">${relatedCoord.getArticleId()}</span> 
532																				<span id="tagmanager_item_category">${categoryName}</span> 
533																				<span id="tagmanager_item_name">${relatedTitolo}</span> 
534																				<span id="tagmanager_item_list_name">${categoryName}</span> 
535																				<span id="tagmanager_item_list_id">${categoryName}</span> 
536																				<span id="tagmanager_item_brand">${categoryName}</span> 
537																				<span id="tagmanager_index">${relatedCoord_index}</span> 
538																			</div> 
539																			<a class="header-title title-5" href="#"></a> 
540																		</#list> 
541																	</div> 
542																</div> 
543															</div> 
544															<div class="card-body"> 
545																<a class="card-body-title title-4" href="/-/${relatedCoord.getUrlTitle()}"> 
546																	${relatedTitolo} 
547																</a> 
548																<div class="card-body-subtitle"> 
549																	${relatedSottotitolo} 
550																</div> 
551															</div> 
552															<div class="card-info"> 
553																<span class="info"></span> 
554															</div> 
555														</div> 
556													</div> 
557 
558													<#assign categoryNames = [] > 
559													<#assign categories = [] > 
560												</#list> 
561											</div> 
562										</div> 
563									</div> 
564								</div> 
565							</div> 
566						</div> 
567					</div> 
568				</div> 
569			</aside> 
570		</#if> 
571 
572 
573 
574		<script> 
575			$("#backLink").click(function(event) { 
576				event.preventDefault(); 
577				history.back(1); 
578			}); 
579		</script> 
580		<!-- Go to www.addthis.com/dashboard to customize your tools --> 
581		<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-5c629e6303f68c9f"></script> 

Tom search

The best offers for you