S'ha produït un error mentre es processava la plantilla.
The following has evaluated to null or missing: ==> journalContent.getContent(article.getGroupId(),article.getArticleId(), ddmTemplateKey, "VIEW", themeDisplay.getLanguageId(), themeDisplay) [in template "20115#20151#161662" at line 50, column 43] ---- 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: ${journalContent.getContent(article.g... [in template "20115#20151#161662" at line 50, column 41] ----
1<#-- --------------------------------------------------------------------------------------------------------
2-- MIGRACIÓ A 7.2 : Opció liferay
3-------------------------------------------------------------------------------------------------------- -->
4<#assign siteURL = portalUtil.getLayoutFullURL(layout, themeDisplay)?keep_before(themeDisplay.getLayoutFriendlyURL(themeDisplay.getLayout())) >
5
6<#assign etq_titol = languageUtil.get(locale, "convocatoria-premsa-plural") />
7
8<#assign cont = 0> <#-- contador de cel·les de la fila -->
9
10<#-- Lista los contenidos web de determinada estructura aplicándoles una plantilla -->
11<#assign
12 journalContent = serviceLocator.findService("com.liferay.journal.util.JournalContent")
13/>
14
15<#if entries?has_content>
16 <div class="box-flow mb-xs-large">
17 <div class="heading-wrapper">
18 <h3 class="heading">${etq_titol}</h3>
19 </div>
20
21 <#list entries as entry>
22 <#assign cont = cont + 1>
23 <#if cont == 1 >
24 <div class="row mb-md-regular"> <#-- inici row -->
25 </#if>
26
27 <#assign
28 assetRenderer = entry.getAssetRenderer()
29 ddmTemplateKey = "1518923" <#-- Convocatòria premsa per llista -->
30 />
31 <#-- WebContent con determinada ddmStructureKey -->
32 <#assign
33 viewURL = assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse,
34 assetRenderer, entry,
35 !stringUtil.equals(assetLinkBehavior, "showFullContent"))
36 />
37
38 <#assign urlArticle = '' >
39
40 <#-- WebContent con determinada ddmStructureKey -->
41 <#-- <#if assetRenderer.getClassName() == "com.liferay.journal.model.JournalArticle" && assetRenderer.getArticle().getDDMStructureKey() == ddmStructureKey> -->
42 <#if assetRenderer?? && assetRenderer.getClassName() == "com.liferay.journal.model.JournalArticle">
43
44 <div class="col-xs-12 col-sm-6 col-md-6 mb-xs-regular mb-md-0" name="cel·la-${cont}">
45 <#assign article = assetRenderer.getArticle() />
46 <#-- URL de l'article -->
47 <a id="URLCP-${article.getArticleId()}" href="${viewURL!'#'}" style="display:none;"></a>
48
49 <#-- HTML de WebContent con la plantilla ddmTemplateKey -->
50 ${journalContent.getContent(article.getGroupId(),article.getArticleId(), ddmTemplateKey, "VIEW", themeDisplay.getLanguageId(), themeDisplay)}
51 </div>
52 </#if>
53 <#if cont == 2 >
54 </div> <#-- final row -->
55 <#assign cont = 0>
56 </#if>
57
58 </#list>
59
60 <#if cont == 1 >
61 </div> <#-- final row -->
62 </#if>
63
64 </div><#-- /END box-flow mb-xs-large -->
65</#if>
—
20 articles per pàgina