Used forest machines – reliably
Used machines
An error occurred while processing the template.
The following has evaluated to null or missing: ==> journalArticleLocalService [in template "1812923#1812963#299121" at line 2, column 27] ---- 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 = journalArtic... [in template "1812923#1812963#299121" at line 2, column 1] ----
1<#assign articleId = .vars['reserved-article-id'].data />
2<#assign journalArticle = journalArticleLocalService.getLatestArticle(getterUtil.getLong(groupId), articleId)/>
3<#assign displayLocale = journalArticle.getExpandoBridge().getAttribute("displayLocale")/>
4
5<#if (!displayLocale?has_content ||(displayLocale?has_content && displayLocale?contains(locale)))>
6 <#if paragraph.getSiblings()?has_content>
7 <#list paragraph.getSiblings() as cur_paragraph>
8 <#if cur_paragraph?is_first>
9 <div id="preview-container${articleId}" class="preview-container" data-articleid="${articleId}">
10 <#if mainImage?has_content && mainImage.getData()?has_content>
11 <img class="preview-image" src="${mainImage.getData()}"/>
12 <#elseif cur_paragraph.image.getData()?has_content>
13 <img class="preview-image" src="${cur_paragraph.image.getData()}"/>
14 <#else>
15 <div class="preview-image no-image"></div>
16 </#if>
17
18 <#if title.getData()?has_content>
19 <div class="year">${title.getData()}</div>
20 </#if>
21 <#if cur_paragraph.getData()?has_content>
22 <div class="title">${cur_paragraph.getData()}</div>
23 </#if>
24 </div>
25 </#if>
26
27 <#if cur_paragraph?is_first><div id="content${articleId}" class="history-content-container">
28 <div class="close-article-btn" data-articleid="${articleId}" ><span class="glyphicon glyphicon-remove pull-right"></span></div>
29 <#if title.getData()?has_content>
30 <h2>${title.getData()}</h2>
31 </#if>
32 <div class="history-content-article">
33 </#if>
34 <div class="paragraph">
35 <div>
36 <#if cur_paragraph.getData()?has_content>
37 <div class="content-title">${cur_paragraph.getData()}</div>
38 </#if>
39 <div class="content">
40 <#if cur_paragraph.image.getData()?has_content>
41 <img class="content-image" src="${cur_paragraph.image.getData()}"/>
42 </#if>
43 ${cur_paragraph.content.getData()}
44 </div>
45 </div>
46 </div>
47 <#if cur_paragraph?is_last></div></div></#if>
48
49 </#list>
50 </#if>
51
52</#if>