Cross-border service activities
An error occurred while processing the template.
The following has evaluated to null or missing: ==> webContentData.classPK [in template "20096#20121#48448" at line 29, column 82] ---- 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: article = JournalArticleLocalService... [in template "20096#20121#48448" at line 29, column 28] ----
1<#assign JournalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService")
2/>
3
4<div class="sdg-recommendation">
5<h2 class="recommendation-title">
6${.vars["reserved-article-title"].data}
7</h2>
8
9<#if (recommendation_description.getData())??>
10<div class="recommendation-description">
11 ${recommendation_description.getData()}
12</div>
13</#if>
14
15<#if (recommendation_intro.getData())??>
16<div class="recommendation-description">
17 ${recommendation_intro.getData()}
18</div>
19</#if>
20
21<#if recommendation_step.getSiblings()?has_content>
22
23 <#list recommendation_step.getSiblings() as cur_recommendation_step>
24
25 <#assign
26 webContentData = jsonFactoryUtil.createJSONObject(cur_recommendation_step.getData())
27 />
28 <#if webContentData?has_content && webContentData != "">
29 <#assign article = JournalArticleLocalService.getLatestArticle(webContentData.classPK?number)
30 classPK = webContentData.classPK
31 />
32 <div class="recommendation-step" id="recommendation_step_${classPK}">
33 <@liferay_journal["journal-article"]
34 articleId=article.getArticleId()
35 ddmTemplateKey=article.getDDMTemplateKey()
36 groupId=groupId/>
37
38 </div>
39 </#if>
40
41 </#list>
42
43</#if>
44
45</div>