Virhe tapahtui prosessoidessa esitysmallia.
The following has evaluated to null or missing: ==> blogEntry.getCoverImageURL(themeDisplay) [in template "20099#20135#553975" at line 17, column 37] ---- Tip: If the failing expression is known to be 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: ${blogEntry.getCoverImageURL(themeDis... [in template "20099#20135#553975" at line 17, column 35] ----
1<section class="blog-detail position-relative">
2 <div class="container">
3 <div class="row ml-0 mr-0">
4 <#if entries?has_content>
5 <#list entries as curEntry>
6
7<#assign bid = curEntry.getClassPK() />
8
9<#assign blogsEntryLocalService = serviceLocator.findService("com.liferay.blogs.service.BlogsEntryLocalService")>
10
11<#assign blogEntry = blogsEntryLocalService.getBlogsEntry(bid) />
12
13
14 <div class="col-lg-4 col-md-6 col-12">
15 <div class="news-event-div listing wow fadeInUp" data-wow-duration="1s" data-wow-delay="0.3s">
16
17 <img src="${blogEntry.getCoverImageURL(themeDisplay)}" class="blog-list-img img-fluid" alt="image">
18
19 <div class="news-content-area" style="margin-bottom:20px;">
20 <p class="site-text black-text mb-2">Posted on ${dateUtil.getDate(curEntry.getCreateDate(), "MMMM dd , yyyy", locale)}</p>
21 <h4 class="sub-heading mb-3">${curEntry.getTitle(locale)}</h4>
22 <p class="site-text">
23 ${stringUtil.shorten(htmlUtil.stripHtml(curEntry.getSummary()), 150)}
24 </p>
25 <a href="/web/helpxchange-ui/blog-detail?entryid=${curEntry.getClassPK()}&new=true" class="read-more">View More</a>
26 <div class="blue-div">
27 </div>
28 </div>
29
30
31 </div>
32 </div>
33 </#list>
34 </#if>
35 </div>
36</div>
37</section>