Ajankohtaisia asioita PIKistä ja muualta
Virhe tapahtui prosessoidessa esitysmallia.
The following has evaluated to null or missing: ==> alttext [in template "1047026#1047065#1031360" at line 21, column 73] ---- 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: ${alttext.getData()} [in template "1047026#1047065#1031360" at line 21, column 71] ----
1<#--
2Display templates are used to lay out the fields defined in a data
3definition.
4
5Please use the left panel to quickly add commonly used variables.
6Autocomplete is also available and can be invoked by typing "${".
7<div class="news-title">
8 <h2>${.vars['reserved-article-title'].data}</h2>
9 </div>
10-->
11<article class="newsArticle">
12 <#if showIngressInFullArticle?? && getterUtil.getBoolean(showIngressInFullArticle.getData())>
13 <div class="ingress">
14 ${ingress.getData()}
15 </div>
16 </#if>
17 <div class="image-container">
18 <#if documentsAndMediaImage.getData() != "">
19 <img class="news-image" src="${documentsAndMediaImage.getData()}" alt="${alttext.getData()}">
20 <#elseif imageLink?? && imageLink.getData() != "">
21 <img class="news-image" src="${imageLink.getData()}" alt="${alttext.getData()}"/>
22 <#elseif image.getData() != "">
23 <img class="news-image" src="${image.getData()}" alt="${alttext.getData()}"/>
24 </#if>
25 </div>
26
27 <div class="news-text">
28 ${newsText.getData()}
29 </div>
30
31</article>