An error occurred while processing the template.
Failed to "?eval" string with this error:

---begin-message---
Syntax error in ?eval-ed string in line 1, column 12:
Encountered "y", but was expecting one of:
    ".."
    <DOT_DOT_LESS>
    "..*"
    ")"
    "."
    "["
    "("
    "?"
    "!"
    <TERMINATING_EXCLAM>
    "??"
    "+"
    "-"
    "*"
    "/"
    "%"
    "!="
    "="
    "=="
    ">="
    <ESCAPED_GTE>
    ">"
    <ESCAPED_GT>
    <LESS_THAN_EQUALS>
    <LESS_THAN>
    <AND>
    <OR>
---end-message---

The failing expression:
==> imagen_listado?eval  [in template "10512#10549#390490" at line 27, column 60]

----
FTL stack trace ("~" means nesting-related):
	- Failed at: #assign imagen_listado_Json = imagen_...  [in template "10512#10549#390490" at line 27, column 29]
----
1<#assign anchor1 = themeDisplay.getPortletDisplay().getId()> 
2<#assign anchor = anchor1?split("INSTANCE_")[1]> 
3 
4<#assign dlService = serviceLocator.findService("com.liferay.document.library.kernel.service.DLFileEntryLocalService")> 
5 
6<#if entries?has_content> 
7    <div class="news-feed"> 
8        <div class="wpr"> 
9            <div class="anchor" id="${anchor}"></div> 
10            <#foreach entry in entries> 
11                <#if entry.getClassName() == "com.liferay.journal.model.JournalArticle" > 
12                    <section> 
13                        <#assign assetRenderer = entry.getAssetRenderer()/> 
14                        <#assign journalArticle =  assetRenderer.getAssetObject() /> 
15                        <#assign document = saxReaderUtil.read(journalArticle.getContent())> 
16                        <#assign rootElement = document.getRootElement()> 
17                        <#assign defaultLanguageId = parseXml ("@default-locale", rootElement)> 
18                        <#assign imagen_listado = getField("imagen_listado", locale, defaultLanguageId, rootElement)> 
19                        <#assign alt_imagen_listado = getField("alt_imagen_listado", locale, defaultLanguageId, rootElement)> 
20                        <#assign fecha = getField("fecha", locale, defaultLanguageId, rootElement)> 
21                        <#assign titulo = getField("titulo", locale, defaultLanguageId, rootElement)> 
22                        <#assign entradilla = getField("entradilla", locale, defaultLanguageId, rootElement)> 
23 
24 <!--${journalArticle}--> 
25 
26                        <#if imagen_listado?? && imagen_listado != ""> 
27                            <#assign imagen_listado_Json = imagen_listado?eval> 
28                            <p class="summary-image"> 
29                                <#assign fileEntry = dlService.getFileEntryByUuidAndGroupId(imagen_listado_Json.uuid, groupId)> 
30                                <#if fileEntry != ""> 
31                                    <img src="/documents/${fileEntry.getRepositoryId()}/${fileEntry.getFolderId()}/${fileEntry.getFileName()}/${fileEntry.getUuid()}" alt="${alt_imagen_listado}"> 
32                                </#if> 
33                            </p> 
34                        <#else> 
35                            <p class="summary-no-image"></p> 
36                        </#if> 
37 
38                        <#assign link = assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse, entry, true)> 
39                        <#assign link = link + "#" + anchor > 
40 
41                        <a href="${link}" class="link"> 
42                            <p>${fecha}</p> 
43                            <h3 class="title">${titulo}</h3> 
44                            <p class="summary">${entradilla}</p> 
45                        </a> 
46 
47                        <div class="hide-text"></div> 
48                    </section> 
49                </#if> 
50            </#foreach> 
51        </div> 
52 
53        <#assign url = themeDisplay.getURLCurrent() > 
54        <#assign paramPrefix = "_" + themeDisplay.getPortletDisplay().getId() + "_" > 
55        <#assign deltaParam = paramPrefix + "delta" > 
56        <#assign curParam = paramPrefix + "cur" > 
57        <#assign deltaParamValue = httpUtil.getParameter(themeDisplay.getURLCurrent(), deltaParam, false) > 
58 
59        <#if deltaParamValue == ""> 
60            <#assign deltaParamValue = 6 > 
61        </#if> 
62 
63        <#if entries?size == getterUtil.getInteger(deltaParamValue)> 
64            <#assign deltaParamValue = getterUtil.getInteger(deltaParamValue) + 6 > 
65 
66            <#if (url?index_of("?") > 0)> 
67                <#assign url = url?substring(0, url?index_of("?"))> 
68            </#if> 
69 
70            <#assign urlParams = "p_p_id=" + themeDisplay.getPortletDisplay().getId() + "&" + deltaParam + "=" + deltaParamValue + "&" + curParam + "=1" > 
71            <#assign url = url + "?" + urlParams + "#" + anchor > 
72            <div class="load-more"> 
73                <a href="${url}"><span></span></a> 
74            </div> 
75        </#if> 
76 
77    </div> 
78</#if> 
79 
80<#function getField field languageId defaultLanguageId xml> 
81    <#local defaultSelector = "//dynamic-content[@language-id='" + defaultLanguageId + "' and ancestor-or-self::*[@name='" + field + "']]"> 
82    <#local localeSelector = "//dynamic-content[@language-id='" + languageId + "' and parent::*[@name='" + field + "']]"> 
83 
84    <#local selector = saxReaderUtil.createXPath(localeSelector)> 
85    <#local value = selector.selectSingleNode(xml)!> 
86 
87    <#if value?has_content> 
88        <#return value.getText()> 
89    </#if> 
90 
91    <#local selector = saxReaderUtil.createXPath(defaultSelector)> 
92    <#local value = selector.selectSingleNode(xml)!> 
93 
94    <#if value?has_content> 
95        <#return value.getText()> 
96    </#if> 
97 
98    <#return ""> 
99</#function> 
100 
101<#function getFieldAttribute attribute field languageId defaultLanguageId xml> 
102    <#local defaultSelector = "//dynamic-content[@language-id='" + defaultLanguageId + "' and ancestor-or-self::*[@name='" + field + "']]"> 
103    <#local localeSelector = "//dynamic-content[@language-id='" + languageId + "' and parent::*[@name='" + field + "']]"> 
104 
105    <#local selector = saxReaderUtil.createXPath(localeSelector)> 
106    <#local value = selector.selectSingleNode(xml)!> 
107 
108    <#if value?has_content> 
109        <#return value.attribute(attribute)> 
110    </#if> 
111 
112    <#local selector = saxReaderUtil.createXPath(defaultSelector)> 
113    <#local value = selector.selectSingleNode(xml)!> 
114 
115    <#if value?has_content> 
116        <#return value.attribute(attribute)> 
117    </#if> 
118 
119    <#return ""> 
120</#function> 
121 
122<#function parseXml xpath xml> 
123    <#local selector = saxReaderUtil.createXPath(xpath)> 
124    <#local result = selector.selectSingleNode(xml)!> 
125 
126    <#if result?has_content> 
127        <#return result.getStringValue()> 
128    </#if> 
129 
130    <#return ""> 
131</#function> 

Contacto

Para contactar con la Fundación Línea Directa puede hacerlo con:

Santiago Velázquez (santiago.velazquez@fundacionlineadirecta.org) - 91 807 20 15 / 682 196 953

Ricardo Carrasco (ricardocarrasco.perez@fundacionlineadirecta.org) - 91 807 19 67 / 682 387 533

Beatriz Acevedo (beatriz.acevedo@fundacionlineadirecta.org) - 918 072 044 / 636 658 641

Ronda de Europa, 7. 28760, Tres Cantos, Madrid