Gobiendes - ayto-colunga
Estas en:
Se ha producido un error al procesar la plantilla.
The following has evaluated to null or missing: ==> assetRenderer.getArticle [in template "10114#2295845#2419500" at line 4, column 39] ---- Tip: It's the step after the last dot that caused this error, not those before it. ---- 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 journalArticle = assetRendere... [in template "10114#2295845#2419500" at line 4, column 13] ----
1<#if entries?has_content>
2 <#list entries as entry>
3 <#assign assetRenderer = entry.getAssetRenderer() />
4 <#assign journalArticle = assetRenderer.getArticle() />
5 <#assign document = saxReaderUtil.read(journalArticle.getContentByLocale(locale)) />
6 <#assign rootElement = document.getRootElement() />
7
8 <#assign titulo = saxReaderUtil.createXPath("dynamic-element[@name='titulo']").selectSingleNode(rootElement).getStringValue() />
9 <#assign viewURL = assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse, entry) />
10 <#assign resumen = saxReaderUtil.createXPath("dynamic-element[@name='resumen']").selectSingleNode(rootElement).getStringValue() />
11
12 <div class="article-list">
13 <h3 class="titular"><a href="${viewURL}" title="${titulo}">${titulo}</a></h3>
14 <#if !validator.isBlank(resumen?trim)>
15 <p>${resumen}</p>
16 </#if>
17 <a title="<@liferay.language key='leer-mas-sobre' /> ${titulo}" href="${viewURL}">
18 <@liferay.language key="leer-mas" />
19 </a>
20 </div>
21 </#list>
22</#if>