null Pirateria marittima e sanzioni internazionali Duplica 1
Si è verificato un errore nell'elaborarazione del modello.
The following has evaluated to null or missing:
==> TitoloSezioneDocumenti  [in template "20099#20135#35192" at line 78, column 54]

----
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: #if TitoloSezioneDocumenti.getData() ...  [in template "20099#20135#35192" at line 78, column 49]
----
1<#assign dlFileEntryLocalService = serviceLocator.findService( 
2	"com.liferay.document.library.kernel.service.DLFileEntryLocalService") /> 
3 
4<#assign imagePathTheme = themeDisplay.getPathThemeImages() /> 
5 
6<div class="evento-singolo <#if Immagine.getData()==''>with-margin</#if>"> 
7	<div class="event-container"> 
8		<#if Immagine.getData()!=""> 
9			<div class="top-part row"> 
10				<div 
11					class="col-lg-8 col-md-7 image d-sm-none d-md-block" 
12					style="background-image:url('${Immagine.getData()}'); background-size:cover; background-position:center;" 
13
14				</div> 
15				<div class="col-lg-8 col-md-7 image d-sm-block d-md-none"> 
16					<img src="${Immagine.getData()}" alt="${Titolo.getData()}" /> 
17				</div> 
18				<div class="col-lg-4 col-md-5 text-column"> 
19					<#if TitoloInformazioni.getData()!=""> 
20						<h3 class="section-title small">${TitoloInformazioni.getData()}</h3> 
21					</#if> 
22					<div class="more-info"> 
23						<#if (DataEvento.getData())?has_content> 
24							<#assign date = DataEvento.getData() /> 
25							<#assign date_DateObj = dateUtil.parseDate("yyyy-MM-dd", date, locale)> 
26							<#assign startDateDayOfWeek = dateUtil.getDate(date_DateObj, "EEEE", locale)> 
27							<#assign startDateDay = dateUtil.getDate(date_DateObj, "dd", locale)> 
28							<#assign startDateMonth = dateUtil.getDate(date_DateObj, "MMMM", locale)> 
29							<#assign startDateYear = dateUtil.getDate(date_DateObj, "yyyy", locale)> 
30							<div class="date-event event-column-info"> 
31								<img 
32									alt="Date" 
33									class="icon" 
34									src="${imagePathTheme}/vendor/calendar.png" 
35									width="20" 
36								/> 
37								<h4> ${startDateDayOfWeek} ${startDateDay} ${startDateMonth} ${startDateYear} </h4> 
38							</div> 
39						</#if> 
40						<#if (OrarioEvento.getData())?has_content> 
41							<div class="hour-event event-column-info"> 
42								<img 
43									alt="Hour" 
44									class="icon" 
45									src="${imagePathTheme}/vendor/time.png" 
46									width="20" 
47								/> 
48								<h4> ${OrarioEvento.getData()?html} </h4> 
49							</div> 
50						</#if> 
51						<#if (Luogo.getData())?has_content> 
52							<div class="location-event event-column-info"> 
53								<img 
54									alt="Position" 
55									class="icon" 
56									src="${imagePathTheme}/vendor/location-pin.png" 
57									width="20" 
58								/> 
59								${Luogo.getData()} 
60							</div> 
61						</#if> 
62					</div> 
63				</div> 
64			</div> 
65		</#if> 
66		<div class="main-part"> 
67			<div class="row row-content"> 
68				<div class="col-md-12 ania-wrapper"> 
69					<#if Titolo.getData()!=""> 
70						<div class="title"> 
71							<h3 class="section-title">${Titolo.getData()}</h3> 
72						</div> 
73					</#if> 
74					<#if breveDescrizione.getData()!=""> 
75						<div class="event-description">${breveDescrizione.getData()}</div> 
76					</#if> 
77					<div class="section-resource"> 
78						<#if TitoloSezioneDocumenti.getData()!=""> 
79							<div aria-orientation="vertical" class="panel-group" id="accordionDocumenti" role="tablist"> 
80								<div class="panel"> 
81									<a 
82										aria-controls="collapseDocumenti" 
83										aria-expanded="true" 
84										class="col-xl-3 col-lg-4 col-md-6 title collapse-icon panel-header panel-header-link" 
85										data-parent="#accordionDocumenti" 
86										data-target="#accordionDocumentiCollapse" 
87										data-toggle="collapse" 
88										id="accordionDocumentiHeading" 
89										role="tab" 
90										type="button" 
91
92										<span class="panel-title"> 
93											<h3 class="section-title small"> 
94	                                            ${TitoloSezioneDocumenti.getData()} 
95												<span class="collapse-icon-closed"> 
96													<i class="icon-angle-right d-flex"></i> 
97												</span> 
98												<span class="collapse-icon-open"> 
99													<i class="icon-angle-down d-flex"></i> 
100												</span> 
101											</h3> 
102										</span> 
103									</a> 
104									<#if labelRisorsa.getSiblings()?has_content> 
105										<div id="accordionDocumentiCollapse" class="row panel-collapse collapse documents-column show" aria-labelledby="accordionDocumentiHeading" role="tabpanel"> 
106											<#list labelRisorsa.getSiblings() as cur_labelRisorsa> 
107												<div class="col-xl-3 col-lg-4 col-md-6"> 
108													<#if cur_labelRisorsa.document.getData()?has_content> 
109														<#assign document = cur_labelRisorsa.document.getData() /> 
110														<#assign counter = 0 > 
111														<#list document?split("/") as stringFileUrl> 
112															<#if counter == 2> 
113																<#assign groupId = stringFileUrl?number /> 
114															</#if> 
115															<#if counter == 5> 
116																<#assign uuId = stringFileUrl?keep_before("?") /> 
117															</#if> 
118															<#assign counter = counter + 1 /> 
119														</#list> 
120 
121														<#assign file = dlFileEntryLocalService 
122															.getDLFileEntryByUuidAndGroupId(uuId, groupId?number) /> 
123 
124														<#assign docType = file.getExtension() /> 
125														<#if docType != "pdf" && 
126															docType != "xls" && 
127															docType != "xlsx" && 
128															docType != "zip" && 
129															docType != "rar" && 
130															docType != "7z" 
131
132															<#assign docType = "generic_file" /> 
133														</#if> 
134														<div class="document"> 
135															<a 
136																href="${document}" 
137																target="_blank" 
138																class="document-link" 
139
140																<img 
141																	alt="${docType}" 
142																	class="media-type-icon card-icon" 
143																	src="${imagePathTheme}/vendor/files/${docType}.svg" 
144																	width="20" 
145																/> 
146																${cur_labelRisorsa.getData()} 
147															</a> 
148															<#if cur_labelRisorsa.descrizioneRisorsa.getData()?has_content> 
149																<p class="description-document">${cur_labelRisorsa.descrizioneRisorsa.getData()}</p> 
150															</#if> 
151														</div> 
152													<#elseif cur_labelRisorsa.linkARisorsa.getData() != ""> 
153														<#assign link = cur_labelRisorsa.linkARisorsa.getData() /> 
154														<div class="document"> 
155															<a 
156																href="${link}" 
157																target="_blank" 
158																class="document-link" 
159
160																<img 
161																	alt="link" 
162																	class="media-type-icon card-icon" 
163																	src="${imagePathTheme}/vendor/files/file.svg" 
164																	width="20" 
165																/> 
166																${cur_labelRisorsa.getData()} 
167															</a> 
168															<#if cur_labelRisorsa.descrizioneRisorsa.getData()?has_content> 
169																<p class="description-document">${cur_labelRisorsa.descrizioneRisorsa.getData()}</p> 
170															</#if> 
171														</div> 
172													</#if> 
173												</div> 
174											</#list> 
175										</div> 
176									</#if> 
177								</div> 
178							</div> 
179                        </#if> 
180					</div> 
181 
182					<div class="section-resource"> 
183						<#if TitoloSezioneVideo.getData()!=""> 
184							<div aria-orientation="vertical" class="panel-group" id="accordionVideo" role="tablist"> 
185								<div class="panel"> 
186									<a 
187										aria-controls="collapseVideo" 
188										aria-expanded="false" 
189										class="col-xl-3 col-lg-4 col-md-6 title collapse-icon collapsed panel-header panel-header-link" 
190										data-parent="#accordionVideo" 
191										data-target="#accordionVideoCollapse" 
192										data-toggle="collapse" 
193										id="accordionVideoHeading" 
194										role="tab" 
195										type="button" 
196
197										<span class="panel-title"> 
198											<h3 class="section-title small"> 
199	                                            ${TitoloSezioneVideo.getData()} 
200												<span class="collapse-icon-closed"> 
201													<i class="icon-angle-right d-flex"></i> 
202												</span> 
203												<span class="collapse-icon-open"> 
204													<i class="icon-angle-down d-flex"></i> 
205												</span> 
206											</h3> 
207										</span> 
208									</a> 
209									<#if LabelVideo.getSiblings()?has_content> 
210										<div id="accordionVideoCollapse" class="row panel-collapse collapse video-column" aria-labelledby="accordionVideoHeading" role="tabpanel"> 
211											<#list LabelVideo.getSiblings() as cur_LabelVideo> 
212												<#assign urlVideo = "" /> 
213												<div class="col-xl-3 col-lg-4 col-md-6"> 
214													<#if (cur_LabelVideo.UrlVideoYoutube.getData())?has_content> 
215														<#assign urlVideo = cur_LabelVideo.UrlVideoYoutube.getData() /> 
216 
217														<div class="video-link" onclick="openModalVideo('${urlVideo?trim}')"> 
218															<div 
219																class="video-thumbnail" 
220																style="background-image:url(https://img.youtube.com/vi/${urlVideo}/0.jpg)" 
221
222																<div class="video-icon"> 
223																	<img 
224																		alt="video" 
225																		class="icon" 
226																		src="${imagePathTheme}/vendor/play-button.png" 
227																		width="16" 
228																	/> 
229																</div> 
230															</div> 
231															<div class="text"> 
232																<span>${cur_LabelVideo.getData()}</span> 
233																<#if cur_LabelVideo.DescrizioneVideo.getData()?has_content> 
234																	<p class="description-video">${cur_LabelVideo.DescrizioneVideo.getData()}</p> 
235																</#if> 
236															</div> 
237														</div> 
238													</#if> 
239												</div> 
240											</#list> 
241										</div> 
242									</#if> 
243								</div> 
244							</div> 
245                        </#if> 
246					</div> 
247 
248					<div class="section-resource"> 
249						<#if TitoloSezioneImmagini.getData()!=""> 
250							<div aria-orientation="vertical" class="panel-group" id="accordionImmagini" role="tablist"> 
251								<div class="panel"> 
252									<a 
253										aria-controls="collapseImmagini" 
254										aria-expanded="false" 
255										class="col-xl-3 col-lg-4 col-md-6 title collapse-icon collapsed panel-header panel-header-link" 
256										data-parent="#accordionImmagini" 
257										data-target="#accordionImmaginiCollapse" 
258										data-toggle="collapse" 
259										id="accordionImmaginiHeading" 
260										role="tab" 
261										type="button" 
262
263										<span class="panel-title"> 
264											<h3 class="section-title small"> 
265	                                            ${TitoloSezioneImmagini.getData()} 
266												<span class="collapse-icon-closed"> 
267													<i class="icon-angle-right d-flex"></i> 
268												</span> 
269												<span class="collapse-icon-open"> 
270													<i class="icon-angle-down d-flex"></i> 
271												</span> 
272											</h3> 
273										</span> 
274									</a> 
275									<#if ImmagineEvento.getSiblings()?has_content> 
276										<div id="accordionImmaginiCollapse" class="row panel-collapse collapse image-column" aria-labelledby="accordionImmaginiHeading" role="tabpanel"> 
277											<#list ImmagineEvento.getSiblings() as cur_ImmagineEvento> 
278												<#if cur_ImmagineEvento.getData()?? && cur_ImmagineEvento.getData() != ""> 
279													<div class="image-content" onclick="openModalImage('${cur_ImmagineEvento.getData()?trim}')"> 
280														<div 
281															class="image-gallery" 
282															style="background-image:url('${cur_ImmagineEvento.getData()}');" 
283														></div> 
284													</div> 
285												</#if> 
286											</#list> 
287										</div> 
288									</#if> 
289								</div> 
290							</div> 
291						</#if> 
292					</div> 
293				</div> 
294			</div> 
295			<div class="row"> 
296				<div class="ania-wrapper"> 
297					<#if go_back_link.getFriendlyUrl()?? && go_back_link.getFriendlyUrl()?trim != ""> 
298						<div class="go-back-link"> 
299							<img alt="Indietro" src="${imagePathTheme}/arrow-left.svg"> 
300							<a href="${go_back_link.getFriendlyUrl()}">Indietro</a> 
301						</div> 
302					</#if> 
303				</div> 
304			</div> 
305		</div> 
306	</div> 
307 
308	<div id="overlay"> 
309		<div class="close"></div> 
310		<div class="overlay-content"></div> 
311	</div> 
312</div> 
313 
314<script> 
315	function openModalVideo(videoId) { 
316		var videoUrl ='https://www.youtube.com/embed/' + videoId.toString() + '?rel=0&amp;playsinline=0&amp;autoplay=1&amp;controls=1&amp;enablejsapi=1&amp;showinfo=0&amp;suggestedQuality=hd720&amp;wmode=transparent&amp;iv_load_policy=3&amp;origin=http%3A%2F%2Foutlawed-movie.test%3A8888&amp;widgetid=2'; 
317 
318		var $overlayParent = $('#overlay'); 
319		var $overlay = $overlayParent.find('.overlay-content'); 
320		var $iframe = $('<iframe width="595" height="485" frameborder="0" marginwidth="0" margin="0" height="0" scrolling="no" allowfullscreen></iframe>'); 
321		$overlay.append($iframe); 
322 
323		$iframe.attr('src', videoUrl); 
324		$overlayParent.addClass('show'); 
325 
326		var $btnClose = $('#overlay .close'); 
327		$btnClose.click(function() { 
328			$overlayParent.removeClass('show'); 
329			$overlay.empty(); 
330		}); 
331
332 
333	function openModalImage(imageId) { 
334		var $imageHtml = '<img alt="overlay-image" src=' + imageId.toString() + '>'; 
335		var $overlay = $('#overlay .overlay-content'); 
336 
337		var $overlayParent = $('#overlay'); 
338		var $overlay = $overlayParent.find('.overlay-content'); 
339 
340		$overlay.append($imageHtml); 
341 
342		$overlayParent.addClass('show'); 
343 
344		var $btnClose = $('#overlay .close'); 
345		$btnClose.click(function() { 
346			$overlayParent.removeClass('show'); 
347			$overlay.empty(); 
348		}); 
349
350</script>