Se ha producido un error al procesar la plantilla.
The following has evaluated to null or missing: ==> curEntry.getPublishDate() [in template "20097#20123#40633" at line 36, column 41] ---- 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: ${curEntry.getPublishDate()?string("d... [in template "20097#20123#40633" at line 36, column 39] ----
1<#--
2Widget templates can be used to modify the look of a
3specific application.
4
5Please use the left panel to quickly add commonly used variables.
6Autocomplete is also available and can be invoked by typing "${".
7-->
8
9<div class="card-container">
10 <div class="card-container__wrapper">
11
12 <#if entries?has_content>
13 <#list entries as curEntry>
14 <#assign assetRenderer = curEntry.getAssetRenderer() />
15 <#assign className = assetRenderer.getClassName() />
16 <#assign urltitle = assetRenderer.getUrlTitle() />
17
18 <#assign urlarticle = themeDisplay.getPortalURL() + "/actualidad/noticias/" + urltitle />
19
20 <#assign journalArticle = assetRenderer.getArticle() />
21 <#assign document = saxReaderUtil.read(journalArticle.getContent()) />
22 <#assign rootElement = document.getRootElement() />
23
24 <#assign xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='ImagenDeCabecera']")>
25 <#assign imgNews = xPathSelector.selectSingleNode(rootElement).getStringValue()>
26 <#assign imgJson = jsonFactoryUtil.createJSONObject(imgNews)>
27 <#assign article_img = "/documents/"+ imgJson.groupId +"/" +imgJson.fileEntryId +"/"+ imgJson.name +"/"+imgJson.uuid >
28 <#setting locale = 'es_ES'>
29
30 <div class="card">
31 <a href="${urlarticle}" class="card__figure">
32 <img class="card__figure__img" src="${article_img}" alt="" title="">
33 </a><!--end of card__img-->
34
35 <div class="card__content" match-height>
36 <p class="card__date">${curEntry.getPublishDate()?string('dd MMMM yyyy')}</p>
37
38 <a href="${urlarticle}" class="card__title">${curEntry.getTitle(locale)}</a>
39
40 <a href="${urlarticle}" class="card__btn btn-link">Ver noticia <i class="btn-link__icon icon-s-arrow-right"></i></a>
41 </div><!--end of card__content-->
42 </div><!--end of card-->
43 </#list>
44 </#if>
45 </div><!--end of card-container__wrapper-->
46</div><!--end of card-container-->