John Cannaday
Virhe tapahtui prosessoidessa esitysmallia.
The following has evaluated to null or missing:
==> request.attributes [in template "10155#10195#3631593" at line 2, column 18]
----
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: author = request.attributes.author!"" [in template "10155#10195#3631593" at line 2, column 9]
----
1<#assign
2 author = request.attributes.author!""
3 displayMode = getterUtil.getInteger(request.attributes.displayMode!0,0)
4 viewURL = request.attributes.viewURL!""
5 modifieddate = .vars['reserved-article-modified-date'].data
6/>
7
8<#assign modifieddate = modifieddate?datetime("EEE, d MMM yyyy HH:mm:ss Z")>
9
10<#if displayMode == 1 >
11
12 <#assign colMd = request.attributes.colMd!"">
13
14 <#assign journalArticleTitle = .vars['reserved-article-title'].data>
15
16
17 <div class="asset-abstract ${colMd}">
18
19
20 <#if coverImage.getData()?? && coverImage.getData() !="">
21 <div class="aspect-ratio aspect-ratio-bg-cover" style="margin: 10px 20px;">
22 <img data-fileentryid="${coverImage.getAttribute("fileEntryId")}"
23 alt="${coverImage.getAttribute("alt")}" src="${coverImage.getData()}" />
24 </div>
25 </#if>
26
27 <div class="blog-list-card-content text-center">
28
29 <h4 class="asset-title">
30 <a href="${viewURL}">
31 ${journalArticleTitle}
32 </a>
33 </h4>
34
35 <div class="asset-content">
36 <div class="asset-summary">
37 ${title.getData()}
38
39 </div>
40
41 ${subTitle.getData()}
42
43
44 </div>
45 </div>
46 </div>
47
48<#else>
49
50 <div class="asset-entry-detail">
51
52 <#assign journalArticleTitle = .vars['reserved-article-title'].data>
53
54 <div class="clearfix">
55 <p><img src="${coverImage.getData()}" style="height: auto; width: 277px; float: right; margin-left:25px;"></p>
56
57 <h4 class="h4">${journalArticleTitle}</h4>
58
59 <p>${title.getData()}</p>
60 <p>${subTitle.getData()}</p>
61
62 <p> </p>
63
64 <p>${content.getData()}</p>
65
66 </div>
67
68
69
70 </div>
71</#if>