Java method "de.usu.kas.frontend.service.impl.common.KASArticleServiceImpl.getArticleToUrl(String, long)" threw an exception when invoked on de.usu.kas.frontend.service.impl.common.KASArticleServiceImpl object "de.usu.kas.frontend.service.impl.common.KASArticleServiceImpl@4a9cc6a4"; see cause exception in the Java stack trace. ---- FTL stack trace ("~" means nesting-related): - Failed at: #assign journalArticle = FrontendServ... [in template "252001#252047#28211382" at line 13, column 5] ----
1<#assign
2ServiceContext = staticUtil["com.liferay.portal.kernel.service.ServiceContextThreadLocal"].getServiceContext()
3
4themeDisplay = ServiceContext.getThemeDisplay()
5languageId = themeDisplay.getLocale()
6groupId = themeDisplay.getLayout().getGroupId()
7currentUrl = themeDisplay.getURLCurrent()
8layout = themeDisplay.getLayout()
9/>
10
11<#if (FrontendService.page.isHomePage(layout))?? && !(FrontendService.page.isHomePage(layout)) >
12
13 <#assign journalArticle = FrontendService.article.getArticleToUrl(currentUrl, groupId?number )!"" />
14
15<#-- only returns article on detail pages -->
16 <#if layout.isHidden() && journalArticle?has_content>
17 <#assign pages = [] >
18
19 <#list entries as entry >
20 <#if entry?is_last>
21 <#assign pages = pages + [ { "title": journalArticle.getTitle(languageId), "url", "#"} ]>
22 <#else>
23 <#assign pages = pages + [entry]>
24 </#if>
25 </#list>
26 <#else>
27 <#assign pages = entries >
28 </#if>
29
30 <#if pages?has_content>
31 <ul class="breadcrumb breadcrumb-horizontal">
32 <li>
33 <a href="/">${languageUtil.get(languageId, "vocab.anzeigeseite.startseite")}</a>
34 </li>
35 <#list pages as entry>
36
37 <#assign
38 url = "#"
39 class=""
40 />
41 <#if entry?is_last>
42 <#assign class="active" >
43 </#if>
44 <#if (entry.getURL())??>
45 <#assign url=entry.getURL() >
46 </#if>
47
48 <li class="${class}">
49 <a href="${url}">${entry.title}</a>
50 </li>
51 </#list>
52 </ul>
53 </#if>
54
55</#if>