Solid Ground
An error occurred while processing the template.
The following has evaluated to null or missing: ==> requestMap.attributes.summary [in template "20101#20127#92228" at line 4, column 13] ---- 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: summary = requestMap.attributes.summary [in template "20101#20127#92228" at line 4, column 3] ----
1<#assign
2 viewURL = requestMap.attributes.viewURL
3 title = requestMap.attributes.title
4 summary = requestMap.attributes.summary
5 topic = requestMap.attributes.topic
6 imageURL = "https://via.placeholder.com/800x600/A01723?text=" <#-- fallback for missing images, @TODO: get a betten one -->
7/>
8<#assign articleId = .vars['reserved-article-id'].data />
9<#assign viewURL = viewURL?keep_before("?") />
10
11<#assign iconImg = "" />
12<#assign iconID = "" />
13<#assign adaptiveMediaLocation = ["/o/adaptive-media/image/","/thumbnail-600x600/"] />
14
15
16<#-- lots of conditions because of import in API? Sometimes has_content is true, but still empty... -->
17<#if PosterImage?has_content && PosterImage.getData()?? && PosterImage.getData() != "">
18 <#assign imageURL = PosterImage.getData() />
19 <#assign iconID = PosterImage.getAttribute("fileEntryId") />
20 <#assign iconImg = adaptiveMediaLocation[0] + iconID + adaptiveMediaLocation[1] + PosterImage.getData()?split("/")[4] />
21</#if>
22
23<style>
24 #sg-${articleId} {background-image: url('${imageURL}&imagePreview=1')}
25
26 <#if iconImg != "">
27 @media (min-width: 992px) , (max-width: 400px) {#sg-${articleId} { background-image: url('${iconImg}')}}
28 </#if>
29</style>
30
31<!-- container div is in Application Display Template -->
32<a href="${viewURL}" class="block-link">
33 <div class="row">
34 <div class="col-12 col-lg-6">
35 <div class="aspect-ratio aspect-ratio-bg-cover" id="sg-${articleId}">
36 <!-- implemented as background image -->
37 </div>
38 </div>
39
40 <div class="col-12 col-lg-6">
41 <span class="meta-label meta-topic">${topic}</span>
42 <h2 class="h4">${title}</h2>
43 <span class="summary">${summary}</span>
44 </div>
45 </div>
46</a>
Subscribe
WANT TO BE A STRONGER AMBASSADOR FOR CHRIST?
Let us equip you through our signature publications, videos, articles, and other mentoring tools. Receive the full selection of resources when you share your email address above or customize your selections here.
Let us equip you through our signature publications, videos, articles, and other mentoring tools. Receive the full selection of resources when you share your email address above or customize your selections here.