detalles-noticia
Back
Error
10 COMMITMENTS AS CLEAR AS MADRID'S WATER
As we want to speak to you clearly and offer you more solutions for your needs, we have taken another step in our relationship with you. We assume 10 commitments with which to continue providing you with a quality, fair and transparent service. 10 commitments as clear as the water of Madrid.
CANAL IN 60 SECONDS
The care of our rivers begins in thewaste water treatment plants and continues in our laboratory in Majadahonda, where we analyze the water that we return to the rivers. Julio Rodrigo explains what the analysis of treated waste water consists of and why it is so important for the environment.
An error occurred while processing the template.
Java method "static com.liferay.portal.kernel.portletfilerepository.PortletFileRepositoryUtil.getPortletFileEntry(String, long)" threw an exception; see cause exception in the Java stack trace. ---- FTL stack trace ("~" means nesting-related): - Failed at: #assign fileEntry = portletfilereposi... [in template "20116#20152#45522" at line 14, column 51] ----
1<#if entries?has_content><div class="related-notice"><div class="container-fluid-1280"> <div class="row"> <div class="col-md-12"> <h4 class="text-center">Te puede interesar</h4> </div>
2<#list entries as curEntry>
3
4<#assign portletfilerepository = staticUtil["com.liferay.portal.kernel.portletfilerepository.PortletFileRepositoryUtil"] />
5<#assign xPathImagenSelector = saxReaderUtil.createXPath("//dynamic-element[@field-reference='imagenFieldSet']/dynamic-content/text()") />
6<#assign docXml = saxReaderUtil.read(curEntry.getAssetRenderer().getArticle().getContentByLocale(locale)) />
7<#assign rootElement = docXml.getRootElement() />
8 <#assign imagenURL=""/>
9 <#assign imagen = docXml.valueOf("//dynamic-element[@name='imagenFieldSet']") />
10 <#assign jsonImagen = jsonFactoryUtil.createJSONObject(imagen) />
11 <#assign m = jsonImagen?eval />
12 <#assign groupId = m.groupId?number />
13 <#assign uuid = m.uuid />
14 <#assign fileEntry = portletfilerepository.getPortletFileEntry(uuid, groupId) />
15 <#assign contenido = docXml.valueOf("//dynamic-element[@name='contenido']/dynamic-content/text()") />
16 <#assign imagenURL = portletfilerepository.getPortletFileEntryURL(themeDisplay, fileEntry, "") />
17<#assign assetRenderer = curEntry.getAssetRenderer()>
18
19<#assign viewURL = assetPublisherHelper.getAssetViewURL(renderRequest,renderResponse,curEntry)>
20
21<#assign viewURL = viewURL?replace("actualidad","detalles-noticia")>
22
23<#assign viewURL = viewURL?replace("buscador-avanzado","detalles-noticia")>
24
25<#assign viewURL += '?redirect=%2Fes%2Fweb%2Fsite'>
26
27<#assign comienzo = viewURL?index_of("detalles-noticia")>
28<#assign final = viewURL?index_of("content")>
29<#assign final = final+6>
30
31
32<#assign cambio = viewURL[comienzo..final]>
33
34<#assign viewURL = viewURL?replace(cambio,"-")>
35<#assign viewURL = assetRenderer.getURLViewInContext(renderRequest, renderResponse, '')>
36
37<#assign docXml = saxReaderUtil.read(curEntry.getAssetRenderer().getArticle().getContentByLocale(locale)) />
38<#assign imagen = docXml.valueOf("//dynamic-element[@name='imagenesGaleria']/dynamic-content/text()") />
39<#assign contenido = docXml.valueOf("//dynamic-element[@name='contenido']/dynamic-content/text()") />
40<div class="col-md-4">
41 <#if imagenURL??>
42 <p>
43 <div class="view-media" style="background-image:url(${imagenURL})">
44 </div>
45 </p>
46 </#if>
47 <a href="${viewURL}">
48 <p class="text-blue title-destacado-notice">
49 ${curEntry.getTitle(locale)}
50 </p>
51 </a>
52</div>
53</#list>
54</div>
55</div>
56</div>
57</#if>