Notas de prensa - ayto-laviana
Estas en:
- ayto-laviana
- Ayuntamiento
- Notas de prensa
Se ha producido un error al procesar la plantilla.
The following has evaluated to null or missing: ==> saxReaderUtil.createXPath("dynamic-element[@name='titulo']").selectSingleNode(rootElement) [in template "10114#2295845#2419519" at line 11, column 47] ---- 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: #assign titulo = saxReaderUtil.create... [in template "10114#2295845#2419519" at line 11, column 29] ----
1<#assign dlFileEntryService = serviceLocator.findService("com.liferay.document.library.kernel.service.DLFileEntryLocalService")>
2
3<div class="filanoticias">
4 <#if entries?has_content>
5 <#list entries as entry>
6 <#assign assetRenderer = entry.getAssetRenderer() />
7 <#assign journalArticle = assetRenderer.getArticle() />
8 <#assign document = saxReaderUtil.read(journalArticle.getContentByLocale(locale)) />
9 <#assign rootElement = document.getRootElement() />
10
11 <#assign titulo = saxReaderUtil.createXPath("dynamic-element[@name='titulo']").selectSingleNode(rootElement).getStringValue() />
12 <#assign viewURL = assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse, entry) />
13
14 <#assign resumen = saxReaderUtil.createXPath("dynamic-element[@name='resumen']").selectSingleNode(rootElement).getStringValue() />
15
16 <#--
17 <#assign imagenRepresentativa = saxReaderUtil.createXPath("dynamic-element[@name='imagenRepresentativa']/dynamic-content").selectSingleNode(rootElement).getStringValue() />
18 <#assign altImgRepresen = saxReaderUtil.createXPath("dynamic-element[@name='imagenRepresentativa']/dynamic-element[@name='altImgRepresen']").selectSingleNode(rootElement).getStringValue() />
19 -->
20 <#assign imagenRepresentativa = "" />
21 <#assign altImgRepresen = "" />
22 <#if saxReaderUtil.createXPath("dynamic-element[@name='imagenRepresentativa']/dynamic-content").selectSingleNode(rootElement)??>
23 <#assign imagenRepresentativa = saxReaderUtil.createXPath("dynamic-element[@name='imagenRepresentativa']/dynamic-content").selectSingleNode(rootElement).getStringValue() />
24 <#if saxReaderUtil.createXPath("dynamic-element[@name='imagenRepresentativa']/dynamic-element[@name='altImgRepresen']").selectSingleNode(rootElement)??>
25 <#assign altImgRepresen = saxReaderUtil.createXPath("dynamic-element[@name='imagenRepresentativa']/dynamic-element[@name='altImgRepresen']").selectSingleNode(rootElement).getStringValue() />
26 </#if>
27 </#if>
28
29 <#if entry_index % 2 == 0>
30 <#assign classDiv = "article-list par" />
31 <#else>
32 <#assign classDiv = "article-list impar" />
33 </#if>
34
35 <div class="${classDiv}">
36 <#assign viewURL = viewURL?replace('/noticias/', '/noticia/')/>
37 <#assign viewURL = viewURL?replace('/portada/', '/noticia/')/>
38 <#assign viewURL = viewURL?replace('/actuaciones/', '/noticia/')/>
39 <#assign viewURL = viewURL?replace('/noticias-pstd/', '/noticia/')/>
40 <#assign viewURL = viewURL?replace('/e59dfefcb7bb/', '/f7b4e113864b/')/>
41 <#assign viewURL = viewURL?replace('mBFbnpDXQr0d', '59d802ebedd7')/>
42 <#assign viewURL = viewURL?replace('AUpMU5rWgoCj', '59d802ebedd7')/>
43 <#assign viewURL = viewURL?replace('397657110c31', 'fnjYWfhJuJdH')/>
44 <h3 class="titular"><a href="${viewURL}">${titulo}</a></h3>
45
46 <#if !validator.isBlank(imagenRepresentativa)>
47 <#assign json_img = imagenRepresentativa?eval />
48 <#assign group_id = json_img.groupId />
49 <#assign uuid = json_img.uuid />
50 <#assign fileEntry = dlFileEntryService.getFileEntryByUuidAndGroupId(uuid, getterUtil.getLong(group_id)) />
51 <#assign rutaImg = '/documents/' + group_id + '/' + fileEntry.getClassPK() + '/' + json_img.title + '/' + uuid />
52 <img src="${rutaImg}" alt="${altImgRepresen}" />
53 </#if>
54
55 <p>${resumen}</p>
56
57 <a aria-label="<@liferay.language key='leer-mas-sobre' /> ${titulo}" href="${viewURL}" class="link-more">
58 <@liferay.language key="leer-mas" />
59 </a>
60
61 </div>
62 </#list>
63 </#if>
64</div>