Blog - Tie the Knot
An error occurred while processing the template.
The following has evaluated to null or missing:
==> imageURL [in template "20115#20151#714212207" at line 19, column 8]
----
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: ${imageURL} [in template "20115#20151#714212207" at line 19, column 6]
----
1<#assign journal = entry.getAssetRenderer().getArticle() />
2
3<#assign document = saxReaderUtil.read(journal.getContent()) />
4
5<#assign imageNode = document.selectSingleNode(
6"//dynamic-element[@field-reference='CopyOfimage']/dynamic-content"
7) />
8
9<#assign imageData = imageNode.getText()?eval />
10
11<pre>
12groupId: ${imageData.groupId}
13name: ${imageData.name}
14fileEntryId: ${imageData.fileEntryId}
15uuid: ${imageData.uuid}
16</pre>
17
18<img
19src="${imageURL}"
20alt="${imageData.alt}"
21style="
22width:100%;
23height:220px;
24object-fit:cover;
25display:block;
26"
27/
28
29<div style="
30background:#ffffff;
31border-radius:12px;
32overflow:hidden;
33margin-bottom:30px;
34box-shadow:0 4px 12px rgba(0,0,0,0.08);
35border:1px solid #eaeaea;
36">
37
38<div style="padding:30px;">
39
40<h2 style="
41margin-top:0;
42margin-bottom:10px;
43color:#12284c;
44font-size:32px;
45line-height:1.2;
46">
47${entry.getTitle(locale)}
48</h2>
49
50<#if entry.getPublishDate()??>
51<p style="
52color:#777;
53font-size:14px;
54margin-bottom:20px;
55">
56Published ${dateUtil.getDate(entry.getPublishDate(), "dd MMM yyyy", locale)}
57</p>
58</#if>
59
60<p style="
61color:#666;
62font-size:18px;
63line-height:1.7;
64margin-bottom:25px;
65">
66Discover this featured venue and find out why it could be the perfect setting for your special day.
67</p>
68
69<#assign viewURL = assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse, entry) />
70
71<a href="${viewURL}" style="
72display:inline-block;
73background:#d2e2cb;
74color:#12284c;
75padding:12px 24px;
76border-radius:4px;
77font-weight:600;
78text-decoration:none;
79font-size:16px;
80line-height:1