Consell de Mallorca - Favicon
Consell de Mallorca Seu Electrònica Mallorca.es Transparència

CA

Webs oficials

Totes les notícies

Vés enrere Talls a la carretera Ma-30 per obres d’asfalt

S'ha produït un error mentre es processava la plantilla.
The following has evaluated to null or missing:
==> ImgRel  [in template "20115#20151#40315" at line 4, column 6]

----
Tip: If the failing expression is known to 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 ImgRel.getSiblings()?has_content  [in template "20115#20151#40315" at line 4, column 1]
----
1<#assign etq_video = languageUtil.get(locale, "video-plural") /> 
2 
3<#-- IMATGES NOTÍCIA --------------------------------------- --> 
4<#if ImgRel.getSiblings()?has_content> 
5	<div class="images-carousel swiper-container-horizontal"> 
6		<div class="swiper-wrapper"> 
7			<#list ImgRel.getSiblings() as cur_ImgRel> 
8				<#if cur_ImgRel.getData()?? && cur_ImgRel.getData() != ""> 
9					<div class="swiper-slide"  
10						<#-- style="background-image: url('${cur_ImgRel.getData()}');"  -->  
11						data-zoom="${cur_ImgRel.getData()}"  
12						alt="${cur_ImgRel.getAttribute("alt")}"> 
13						 
14						<img data-zoom="${cur_ImgRel.getData()}"  
15								alt="${cur_ImgRel.getAttribute("alt")}"  
16								data-fileentryid="${cur_ImgRel.getAttribute("fileEntryId")}"  
17								src="${cur_ImgRel.getData()}" /> 
18						 
19						<div class="zoom-image"> 
20							<i class="icon icon-arrow-expand"></i> 
21						</div> 
22						<div class="image-footer"> 
23							<p>${cur_ImgRel.getAttribute("alt")!''}</p> 
24						</div> 
25					</div> 
26				</#if> 
27			</#list> 
28    	</div> 
29		<#-- Add Pagination --> 
30		<#-- Use shortcodes: text-left, text-center or text-right to move bullets --> 
31		<div class="images-pagination text-center"> 
32		</div> 
33	</div> 
34</#if> 
35 
36<#-- DATA NOTÍCIA --------------------------------------- --> 
37<#-- assign locale_us = localeUtil.fromLanguageId("en_US") --> 
38<#assign locale_ca = localeUtil.fromLanguageId("ca_ES")> 
39<#assign displayDate = dateUtil.parseDate( "EEE, dd MMM yyyy HH:mm:ss Z", .vars['reserved-article-display-date'].getData(), locale_ca) > 
40<#assign displayDateFormated = dateUtil.getDate(displayDate, "dd/MM/yyyy", locale) > 
41 
42<#-- COMPARTEIX --------------------------------------- --> 
43<#assign etq_comparteix = languageUtil.get(locale, "comparteix") /> 
44<div class="share-box type-row mb-md-large"> 
45            <h4 class="heading">${etq_comparteix}</h4> 
46            <div id="shareIcons2"></div> 
47</div> 
48 
49<#-- DADES NOTÍCIA --------------------------------------- --> 
50<#assign titol = .vars['reserved-article-title'].getData()> 
51 
52<#-- PINTA NOTÍCIA --------------------------------------- --> 
53<div class="box-flow mb-md-large mb-xs-large"> 
54	<h3 class="heading mb-xs-regular">${titol}</h3> 
55	<p class="text-muted">(${displayDateFormated!''})</p> 
56	<ul class="listing-inline"> 
57		<li><a href="#">${Qui.getData()}</a></li> 
58	</ul> 
59	<p class="text-highlight">${(Entrada.getData())!''}</p> 
60 
61	<p>${Cos.getData()}</p> 
62	 
63	<#-- VÍDEO RELACIONATS --> 
64	<#assign cont = 0> 
65	<#if titolVideo?has_content> 
66		<#if titolVideo.getSiblings()?has_content > 
67			<#list titolVideo.getSiblings() as cur_titolVideo> 
68				 
69				<#-- Comprova que el vídeo té tots els camps emplenats --> 
70				<#if cur_titolVideo.getData()?has_content && cur_titolVideo.getData()!='' 
71				&& cur_titolVideo.codiYouTube.getData()?has_content && cur_titolVideo.codiYouTube.getData()!=''> 
72				 
73					<#-- Només pel primer --> 
74					<#assign cont = cont +1> 
75					<#if cont == 1 > 
76						<h4 class="heading mb-xs-regular" style="margin-top:2%;" >${etq_video}</h4> 
77						<div class="grid"> 
78							<div class="grid-wrapper"> 
79					</#if> 
80					 
81					<#-- Codi del vídeo --> 
82					<div class="item" margin-bottom: 2%;"> 
83						<iframe allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen="" frameborder="0" height="360"  
84							src="https://www.youtube.com/embed/${cur_titolVideo.codiYouTube.getData()}" width="100%"> 
85						</iframe> 
86						<h5>${cur_titolVideo.getData()}</h5> 
87					</div> 
88				</#if> 
89				 
90			</#list> 
91			<#-- Si hem posat algún vídeo --> 
92						    
93			<#if cont gte 1 > 
94						</div> <#-- Final grid --> 
95				</div> <#-- Final grid-wrapper --> 
96			</#if> 
97		</#if> 
98	</#if> 
99	 
100</div>