Home - Vast-Auto Distribution
An error occurred while processing the template.
The following has evaluated to null or missing: ==> PageBackgroundImage [in template "236#1975084#5301600" at line 8, column 6] ---- 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: #if PageBackgroundImage.getData()?? &... [in template "236#1975084#5301600" at line 8, column 1] ----
1<#assign
2 serviceContext = staticUtil["com.liferay.portal.kernel.service.ServiceContextThreadLocal"].getServiceContext()
3 themeDisplay = serviceContext.getThemeDisplay()
4 group_id = themeDisplay.getScopeGroupId()
5 JournalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService")
6 >
7
8<#if PageBackgroundImage.getData()?? && PageBackgroundImage.getData() != "">
9<style>
10body {
11 background: url('${PageBackgroundImage.getData()}') top center no-repeat;
12 background-size: cover;
13 background-attachment: fixed;
14}
15</style>
16
17</#if>
18
19
20<div class="container">
21 <div class="row justify-content-center">
22 <div class="col-8">
23 <div class="card">
24
25 <div class="card-body">
26 <div class="card-body__header">
27 <h1 class="card-title">${Title.getData()}</h1>
28 </div>
29 <#if BodyText.getData()?? && BodyText.getData() != "">
30 ${BodyText.getData()}
31 </#if>
32 <#if getterUtil.getBoolean(SocialWebContent.ShowSocialLinks.getData())>
33 <#assign
34 cur_webContent_map = SocialWebContent.getData()?eval
35 cur_webContent_classPK = cur_webContent_map.classPK
36 article = JournalArticleLocalService.getLatestArticle(cur_webContent_classPK?number)
37 article_id = article.articleId
38 article_content = JournalArticleLocalService.getArticleContent(group_id, article_id, null, locale, themeDisplay)
39 >
40
41 ${article_content}
42 </#if>
43 </div>
44
45 <#if BodyImage.getData()?? && BodyImage.getData() != ""> <img alt="${BodyImage.getAttribute("alt")}" class="card-img-bottom" data-fileentryid="${BodyImage.getAttribute("fileEntryId")}" src="${BodyImage.getData()}" /> </#if>
46 </div>
47 </div>
48 </div>