Se ha producido un error al procesar la plantilla.
The following has evaluated to null or missing: ==> leyendaImagenPrincipal [in template "35804#35832#TPL_NOTICIA" at line 59, column 14] ---- 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 leyendaImagenPrincipal.getData()?... [in template "35804#35832#TPL_NOTICIA" at line 59, column 9] ----
1<#assign dlFileEntryLocalService = serviceLocator.findService("com.liferay.document.library.kernel.service.DLFileEntryLocalService")
2 journalArticleService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService")
3 journalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService")
4 assetEntryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryLocalService")
5 HtmlUtil = staticUtil["com.liferay.portal.kernel.util.HtmlUtil"]
6/>
7
8<#if ! themeDisplay ? has_content>
9 <#assign liferay_theme = PortletJspTagLibs["/META-INF/liferay-theme.tld"] />
10 <@liferay_theme["defineObjects"] />
11</#if>
12
13
14<div class="noticia-detalle">
15 <#assign journalArticleId = .vars['reserved-article-id'].data
16 journalArticle = journalArticleService.getLatestArticle(groupId,journalArticleId)
17 assetEntry = assetEntryLocalService.fetchEntry("com.liferay.journal.model.JournalArticle", journalArticle.getResourcePrimKey()?number)
18 />
19
20 <div class="bloque-fecha-redes col-md-12">
21 <div class="row">
22 <div class="col-md-10 date">
23 <#assign fecha_Data = getterUtil.getString(fecha.getData())>
24 <#if validator.isNotNull(fecha_Data)>
25 <#assign fecha_DateObj = dateUtil.parseDate("yyyy-MM-dd", fecha_Data, locale)>
26 <i class="far fa-calendar-alt"></i>${dateUtil.getDate(fecha_DateObj, "dd 'de' MMMM 'de' yyyy", locale)}
27 </#if>
28 </div>
29 <div class="col-md-2 icon-bar">
30 <#assign serviceContext = staticUtil["com.liferay.portal.kernel.service.ServiceContextThreadLocal"].getServiceContext()>
31 <#assign themeDisplay = serviceContext.getThemeDisplay() />
32 <#assign currentUrl = themeDisplay.getPortalURL() + themeDisplay.getURLCurrent() />
33 <#assign contenidoTitle=.vars['reserved-article-title'].data />
34
35 <a class="facebook" href="https://www.facebook.com/sharer/sharer.php?u=${currentUrl}" title="Facebook"
36 onclick="window.open('https://www.facebook.com/sharer/sharer.php?u=${currentUrl}','popup','width=600,height=500'); return false;" >
37 <i class="fab fa-facebook"></i>
38 </a>
39
40 <a href="https://twitter.com/intent/tweet?url=${currentUrl}" class="twitter" title="Twitter"
41 data-show-count="false" data-size="large"
42 onclick="window.open('https://twitter.com/intent/tweet?url=${currentUrl}','popup','width=600,height=500'); return false;" >
43 <i class="fab fa-twitter"></i>
44 </a>
45 <script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
46
47 <a href="mailto:?subject=${contenidoTitle}&body=${currentUrl}"
48 class="email" title="<@liferay.language key='memoriademocratica.general.enviar-correo' />">
49 <i class="far fa-envelope"></i>
50 </a>
51 </div>
52 </div>
53 </div>
54
55 <#if resumen.getData()?? && resumen.getData() != "">
56 <div class="resumen">${resumen.getData()}</div>
57 </#if>
58
59 <#if leyendaImagenPrincipal.getData()?? && leyendaImagenPrincipal.getData() != "">
60 <#assign leyendaImagenPrincipal = leyendaImagenPrincipal.getData() />
61 <#else>
62 <#assign leyendaImagenPrincipal = "" />
63 </#if>
64
65 <#if imagen.getData()?? && imagen.getData() != "">
66 <div class="text-center">
67 <div class="imagen-principal">
68 <img data-fileentryid="${imagen.getAttribute("fileEntryId")}" alt="${imagen.getAttribute("alt")}" src="${imagen.getData()}" title="${leyendaImagenPrincipal}" />
69 <#if leyendaImagenPrincipal != "">
70 <div class="leyenda-imagen">${leyendaImagenPrincipal}</div>
71 </#if>
72 </div>
73 </div>
74 </#if>
75
76 <#if descripcion.getData()?? && descripcion.getData() != "">
77 <div class="description">
78 ${descripcion.getData()}
79 </div>
80 </#if>
81
82 <#if (imagenesRelacionadas?has_content && imagenesRelacionadas.getSiblings()?has_content )>
83 <div class="imagenes-relacionadas">
84 <div class="row">
85 <#list imagenesRelacionadas.getSiblings() as cur_imagenRelacionada>
86 <#if cur_imagenRelacionada.imagenRelacionada.getData()??>
87 <div class="col-md-4 detail-item-image">
88 <#if cur_imagenRelacionada.imagenRelacionada.getData()?? && cur_imagenRelacionada.imagenRelacionada.getData() != "">
89 <div class="imagen">
90 <a class="example-image-link" href="${cur_imagenRelacionada.imagenRelacionada.getData()}" data-lightbox="example-set"
91 data-title="${cur_imagenRelacionada.leyendaImagenRelacionada.getData()}" data-alt="${cur_imagenRelacionada.leyendaImagenRelacionada.getData()}">
92 <img data-fileentryid="${cur_imagenRelacionada.imagenRelacionada.getAttribute("fileEntryId")}" alt="${cur_imagenRelacionada.imagenRelacionada.getAttribute("alt")}" src="${cur_imagenRelacionada.imagenRelacionada.getData()}" />
93 </a>
94 </div>
95 <#if cur_imagenRelacionada.leyendaImagenRelacionada.getData()?? && cur_imagenRelacionada.leyendaImagenRelacionada.getData() != "">
96 <div class="leyenda-imagen">
97 ${cur_imagenRelacionada.leyendaImagenRelacionada.getData()}
98 </div>
99 </#if>
100 </#if>
101 </div>
102 </#if>
103 </#list>
104 </div>
105 </div>
106 </#if>
107
108 <#if (videosRelacionados?has_content && videosRelacionados.getSiblings()?has_content )>
109 <div class="videos-relacionados">
110 <#list videosRelacionados.getSiblings() as cur_videoRelacionado>
111 <#if cur_videoRelacionado.video.getData()??>
112 <div class="detail-item-video">
113 <#if cur_videoRelacionado.video.getData()?? && cur_videoRelacionado.video.getData() != "">
114 <div class="video">
115 <video controls>
116 <source src="${cur_videoRelacionado.video.getData()}" type="video/mp4">
117 Your browser does not support the video tag.
118 </video>
119 </div>
120 <#if cur_videoRelacionado.tituloVideo.getData()?? && cur_videoRelacionado.tituloVideo.getData() != "">
121 <div class="titulo-video">${cur_videoRelacionado.tituloVideo.getData()} </div>
122 </#if>
123 <#if cur_videoRelacionado.tituloVideo.getData()?? && cur_videoRelacionado.tituloVideo.getData() != "">
124 <div class="descripcion-video">${cur_videoRelacionado.descripcionVideo.getData()}</div>
125 </#if>
126 <#else>
127 <#if cur_videoRelacionado.enlaceAVideoDeYoutube.getData()?? && cur_videoRelacionado.enlaceAVideoDeYoutube.getData() != "">
128 <div class="video">
129 <iframe
130 src="${cur_videoRelacionado.enlaceAVideoDeYoutube.getData()}">
131 </iframe>
132 </div>
133 <#if cur_videoRelacionado.tituloVideo.getData()?? && cur_videoRelacionado.tituloVideo.getData() != "">
134 <div class="titulo-video">${cur_videoRelacionado.tituloVideo.getData()}</div>
135 </#if>
136 <#if cur_videoRelacionado.descripcionVideo.getData()?? && cur_videoRelacionado.descripcionVideo.getData() != "">
137 <div class="descripcion-video">${cur_videoRelacionado.descripcionVideo.getData()}</div>
138 </#if>
139 </#if>
140 </#if>
141 </div>
142 </#if>
143 </#list>
144 </div>
145 </#if>
146
147 <#if (audiosRelacionados?has_content && audiosRelacionados.getSiblings()?has_content )>
148 <div class="audios-relacionados">
149 <div class="row">
150 <#list audiosRelacionados.getSiblings() as cur_audioRelacionado>
151 <#if cur_audioRelacionado.audio.getData()?? && cur_audioRelacionado.audio.getData() != "">
152 <div class="col-md-4">
153 <div class="detail-item-audio">
154 <div class="audio">
155 <audio controls>
156 <source src="${cur_audioRelacionado.audio.getData()}" type="audio/mp3">
157 Your browser does not support the audio tag.
158 </audio>
159 </div>
160 <#if cur_audioRelacionado.tituloAudio.getData()?? && cur_audioRelacionado.tituloAudio.getData() != "">
161 <div class="titulo-audio">${cur_audioRelacionado.tituloAudio.getData()} </div>
162 </#if>
163 <#if cur_audioRelacionado.descripcionAudio.getData()?? && cur_audioRelacionado.descripcionAudio.getData() != "">
164 <div class="descripcion-audio">${cur_audioRelacionado.descripcionAudio.getData()}</div>
165 </#if>
166 </div>
167 </div>
168 </#if>
169 </#list>
170 </div>
171 </div>
172 </#if>
173
174 <#if (enlaces?has_content && enlaces.getSiblings()?has_content && enlaces.getSiblings()[0].urlEnlace.getData()?has_content)>
175 <div class="contenido-article documentacion">
176 <h4><@liferay.language key="memoriademocratica.article.enlaces-relacionados" /></h4>
177 <ul>
178 <#list enlaces.getSiblings() as cur_enlacesRelacionados>
179 <#if cur_enlacesRelacionados.urlEnlace.getData() ? has_content>
180 <#assign nombreEnlace = cur_enlacesRelacionados.urlEnlace.getData()>
181 <#if (cur_enlacesRelacionados.textoAlternativoEnlace.getData()?? && cur_enlacesRelacionados.textoAlternativoEnlace.getData() != "")>
182 <#assign nombreEnlace = cur_enlacesRelacionados.textoAlternativoEnlace.getData()>
183 </#if>
184 <li>
185 <a class="popup" target="_blank" href="${cur_enlacesRelacionados.urlEnlace.getData()}"
186 title="${nombreEnlace}. <@liferay.language key="memoriademocratica.general.external-link" />">${nombreEnlace} </a>
187 </li>
188 </#if>
189 </#list>
190 </ul>
191 </div>
192 </#if>
193
194</div>