Noticias

Noticias

Descripción noticias

Publicador de contenidos

Se ha producido un error al procesar la plantilla.
The string doesn't match the expected date/time/date-time format. The string to parse was: "". The expected format was: "yyyy-MM-dd".
The nested reason given follows:
Unparseable date: ""

----
FTL stack trace ("~" means nesting-related):
	- Failed at: #assign Fecha = saxReaderUtil.createX...  [in template "5331634#5331682#7876773" at line 12, column 21]
----
1<#if entries?has_content> 
2    <div class="container"> 
3        <div class="list_news"> 
4            <ul class="list_items row"> 
5                <#list entries as curEntry> 
6 
7                    <#assign assetRenderer = curEntry.getAssetRenderer() /> 
8                    <#assign journalArticle = assetRenderer.getArticle() /> 
9                    <#assign document = saxReaderUtil.read(journalArticle.getContentByLocale(locale)) /> 
10                    <#assign rootElement = document.getRootElement() /> 
11 
12                    <#assign Fecha = saxReaderUtil.createXPath("dynamic-element[@name='fechaNew']").selectSingleNode(rootElement).getStringValue()?trim?date("yyyy-MM-dd") /> 
13 
14                    <#assign Descripcion = htmlUtil.extractText(saxReaderUtil.createXPath("dynamic-element[@name='smallDescription']").selectSingleNode(rootElement).getStringValue()?trim) /> 
15                    <#if Descripcion?length gte 250> 
16                        <#assign Descripcion = Descripcion?substring(0, 250) /> 
17                        <#assign Descripcion = Descripcion?substring(0, Descripcion?last_index_of(" ")) /> 
18                        <#assign Descripcion += "..." /> 
19                    </#if> 
20 
21                    <#assign ImagenPrincipal = saxReaderUtil.createXPath("dynamic-element[@name='imageFirst']").selectSingleNode(rootElement) /> 
22                    <#assign ImagenPrincipalJson = jsonFactoryUtil.createJSONObject(ImagenPrincipal.getStringValue()) /> 
23                    <#assign imagenPrincipalURL = "/documents/" + ImagenPrincipalJson.groupId + "/" + ImagenPrincipalJson.uuid /> 
24 
25                    <#assign viewURL = assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse, assetRenderer, curEntry, !stringUtil.equals(assetLinkBehavior, "showFullContent")) /> 
26                     
27                    <li class="item col-12 col-md-4"> 
28                        <div class="card"> 
29                            <div class="image" style="background: url(${imagenPrincipalURL});"> 
30                                <!-- idioma --> 
31                            <#if localeUtil.equals(localeUtil.getSiteDefault(), locale)> 
32                                <p class="fecha">${Fecha?string("dd/MM/yyyy")}</p> 
33                            <#else> 
34                                     <p class="fecha">${Fecha?string("yyyy/MM/dd")}</p> 
35                             </#if> 
36                            </div> 
37                            <div class="content_text"> 
38                                <p class="title title_third">${curEntry.getTitle(locale)}</p> 
39                                <p class="summary">${Descripcion}</p> 
40                                <!-- idioma --> 
41                                <#if localeUtil.equals(localeUtil.getSiteDefault(), locale)> 
42                                    <a class="link_default" href="${viewURL}">Leer Noticia <span class="sr-only">${curEntry.getTitle(locale)}</span></a> 
43                                 <#else> 
44                                    <a class="link_default" href="${viewURL}">Berria irakurri <span class="sr-only">${curEntry.getTitle(locale)}</span></a> 
45                                 </#if> 
46                            </div> 
47                        </div> 
48                    </li> 
49                </#list> 
50            </ul> 
51        </div> 
52    </div> 
53</#if>