S'ha produït un error mentre es processava la plantilla.
The following has evaluated to null or missing: ==> .vars['reserved-article-small-image-url'].data [in template "3545192#3545333#4417318" at line 9, column 21] ---- Tip: It's the step after the last dot that caused this error, not those before it. ---- 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: imagenNoticia = .vars["reserved-artic... [in template "3545192#3545333#4417318" at line 9, column 5] ----
1<#--
2SITIO WEB: Conselleria de Sanidad Universal y Salud Pública
3NOMBRE PLANTILLA: Plantilla noticia
4AUTOR: Portales
5-->
6
7<#assign
8 baseURL = themeDisplay.getPortalURL()
9 imagenNoticia = .vars['reserved-article-small-image-url'].data
10 urlNoticia = .vars['reserved-article-url-title'].data
11 w3c_language_id = localeUtil.toW3cLanguageId(themeDisplay.getLanguageId())
12 title = .vars['reserved-article-title'].data
13 createdate = .vars['reserved-article-display-date'].data
14 originalLocale = .locale
15 noImagen=false
16/>
17
18<#setting locale = localeUtil.getDefault() />
19
20<#assign
21 date = createdate?datetime("EEE, d MMM yyyy hh:mm:ss Z")
22 locale = originalLocale
23/>
24
25<#--Cortar el título a 100 caracteres-->
26<#if title?length > 100>
27 <#assign titleShort=title?substring(0,100)>
28<#else>
29 <#assign titleShort=title>
30</#if>
31
32<style>
33.pull-right {display:none;}
34.galeria{margin-top:25px;}
35.volver{margin-top:5px;}
36.subtitulo {font-weight:bold;;float:left;margin-left:20px;background-image:null!important;}
37.subtitulo ul li {background-image:none!important;list-style:disc!important;padding-left:0px!important;}
38.imgsubtitle{display:flex;}
39.imagen{float:left;margin-right:10px;padding-top:20px;max-width:150px;}
40.contenedorImagenes {display: flex; flex-wrap: wrap;}
41.contImagen {padding:10px;width: 110px;height:75px;}
42.imagenGaleria {width: 100%;}
43.compartir a.twitter:after {content: "\e61b";font-family: "Font Awesome 6 Brands", sans-serif;}
44</style>
45<#if imagenMenu.getSiblings()?has_content>
46 <#list imagenMenu.getSiblings() as cur_imgMenu>
47 <#if cur_imgMenu.getData()?has_content>
48 <#assign noImagen=true>
49 </#if>
50 </#list>
51</#if>
52
53<#if imagenNoticia?has_content || noImagen>
54 <div class="col-md-9 detalleNoticia">
55 <div class="noticiaEntera">
56 <div class="volver">
57 <a href="javascript:history.back()" class="volver" target="_self" title="${languageUtil.get(themeDisplay.getLocale(), "noticias.titleVolver", languageUtil.get(themeDisplay.getSiteDefaultLocale(), "noticias.titleVolver"))}">${languageUtil.get(themeDisplay.getLocale(), "noticias.volver", languageUtil.get(themeDisplay.getSiteDefaultLocale(), "noticias.volver"))}</a>
58 </div>
59
60 <div class="headerNoticias">
61 <div class="title">
62 <h3>${.vars['reserved-article-title'].data}</h3>
63 </div>
64 <div class="date">
65 <p>${date?string["dd/MM/yyy"]}</p>
66 </div>
67 </div>
68
69 <div class="bodyNoticias">
70 <div class="imgsubtitle">
71 <#if imagenNoticia?has_content>
72 <div class="imagen">
73
74 <img src="${.vars['reserved-article-small-image-url'].data}" title="${.vars['reserved-article-title'].data}" alt="${titleShort}">
75 </div>
76 </#if>
77 <div class="subtitulo">
78 <p>${ResumenDeLaNoticia.getData()}</p>
79 </div>
80 </div>
81 <div class="cuerpoNoticia">
82 <p>${TextoDeLaNoticia.getData()}</p>
83 </div>
84
85 </div>
86 </div>
87
88 <div class="compartir">
89 <div class="divCompartir"><p>Compartir</p></div>
90 <div class="rrss divTwitter"><a class="twitter" href="https://twitter.com/intent/tweet?text=${title?replace(' ', '+')}&tw_p=tweetbutton&url=${baseURL}/web/sanidad/-/${urlNoticia}" alt="Compartir en twitter"></a></div>
91 <div class="rrss divLinkedin"><a class="linkedin" href="http://www.linkedin.com/shareArticle?&title=${title?replace(' ', '+')}&mini=true&url=${baseURL}/web/sanidad/-/${urlNoticia}&summary=" alt="Compartir en Linkedin"></a></div>
92 <div class="rrss divFacebook"><a class="facebook" href="http://www.facebook.com/sharer.php?u=${baseURL}/web/sanidad/-/${urlNoticia}" alt="Compartir en Facebook"></a></div>
93 <div class="rrss divMail"><a class="mail" href="mailto:?subject=${title}&body=Noticia de la Conselleria de Sanidad Universal y Salud Pública ${baseURL}/web/sanidad/-/${urlNoticia}" alt="Compartir por correo electrónico"></a></div>
94 </div>
95 </div>
96
97 <div class="col-md-3 detalleNoticia">
98 <div class="galeria">
99 <div class="title">
100 <p>${languageUtil.get(themeDisplay.getLocale(), "noticias.galeria", languageUtil.get(themeDisplay.getSiteDefaultLocale(), "noticias.galeria"))}</p>
101 </div>
102
103 <div class="contenedorImagenes">
104 <!-- Imagen destacada de la noticia -->
105 <#if imagenNoticia?has_content>
106 <div class="contImagen">
107 <a href="${imagenNoticia}" target="_blank"><img class="imagenGaleria" src="${.vars['reserved-article-small-image-url'].data}" title="Descargar imagen ${.vars['reserved-article-title'].data}" alt="${.vars['reserved-article-title'].data}"></a>
108 </div>
109 </#if>
110 <!-- Imagenenes del contenido web-->
111 <#if imagenMenu.getSiblings()?has_content>
112 <#list imagenMenu.getSiblings() as cur_imgMenu>
113 <#if cur_imgMenu.getData()?has_content>
114 <div class="contImagen">
115 <a title="Descargar imagen ${cur_imgMenu.getAttribute("alt")}" href="${cur_imgMenu.getData()}" target="_blank"> <img class="imagenGaleria" src="${cur_imgMenu.getData()}" alt="Descargar imagen" /></a>
116 </div>
117 </#if>
118 </#list>
119 </#if>
120 </div>
121 </div>
122 </div>
123<#else>
124 <div class="noticiaEntera">
125 <div class="volver">
126 <a href="javascript:history.back()" class="volver" target="_self" title="${languageUtil.get(themeDisplay.getLocale(), "noticias.titleVolver", languageUtil.get(themeDisplay.getSiteDefaultLocale(), "noticias.titleVolver"))}">${languageUtil.get(themeDisplay.getLocale(), "noticias.volver", languageUtil.get(themeDisplay.getSiteDefaultLocale(), "noticias.volver"))}</a>
127 </div>
128
129 <div class="headerNoticias">
130 <div class="title">
131 <h3>${.vars['reserved-article-title'].data}</h3>
132 </div>
133 </div>
134
135 <div class="bodyNoticias">
136 <div class="subtitulo">
137 <span>${.vars['reserved-article-description'].data}</span>
138 </div>
139 <div class="cuerpoNoticia">
140 <p>${TextoDeLaNoticia.getData()}</p>
141 </div>
142 </div>
143 </div>
144</#if>