Si è verificato un errore nell'elaborarazione del modello.
The following has evaluated to null or missing:
==> ImmagineFieldSet.Immagine [in template "20099#20135#3920607" at line 22, column 36]
----
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: #assign img = ImmagineFieldSet.Immagi... [in template "20099#20135#3920607" at line 22, column 21]
----
1<#include "${templatesPath}/MACRO" />
2
3<div class="product-card-v2 container-widget product-card-bottom">
4
5 <#if Anchor?? && Anchor.getData()?has_content>
6 <a class="nav-anchor" id="${Anchor.getData()}" name="${Anchor.getData()}"></a>
7 </#if>
8
9 <div class="content-container container-fluid">
10
11 <#assign imgdxclass = getterUtil.getBoolean(ImmagineFieldSet.ImgDX.getData())?string(" img-dx","") />
12
13 <div class="d-lg-flex flex-column product-card-wrapper ${imgdxclass}">
14
15 <div class="col-img">
16
17
18 <#assign img = "" />
19 <#if ImmagineFieldSet.ImmagineV2?? && ImmagineFieldSet.ImmagineV2.getData()?has_content>
20 <#assign img = ImmagineFieldSet.ImmagineV2.getData() />
21 <#else>
22 <#assign img = ImmagineFieldSet.Immagine.getData() />
23 </#if>
24
25 <#assign imgMobile = "" />
26 <#if ImmagineMobileV2?? && ImmagineMobileV2.getData()?has_content>
27 <#assign imgMobile = ImmagineMobileV2.getData() />
28 <#elseif ImmagineMobile?? && ImmagineMobile.getData()?has_content>
29 <#assign imgMobile = ImmagineMobile.getData() />
30 </#if>
31
32 <#if imgMobile != "">
33 <div class="product-card-img d-none d-lg-block" style="background-image:url('${img}')"></div>
34 <div class="product-card-img d-lg-none" style="background-image:url('${imgMobile}')"></div>
35 <#else>
36 <div class="product-card-img" style="background-image:url('${img}')"></div>
37 </#if>
38 </div>
39
40
41 <div class="col-lg-9 col-xl-8 col-text d-lg-flex align-items-center">
42 <div class="content-container container-fluid">
43
44 <#if Caption?? && Caption.getData()?has_content>
45 <div class="product-card-caption">${Caption.getData()}</div>
46 </#if>
47
48 <h2 class="product-card-title">${Title.getData()}</h2>
49
50 <#if Text?? && Text.getData()?has_content>
51 <div class="product-card-text">${Text.getData()}</div>
52 </#if>
53
54 <#if (CALLTOACTIONFieldSet.CTA1FieldSet.CTA1.getData())?has_content>
55 <#if (CALLTOACTIONFieldSet.CTA1FieldSet.CTA1LinkToPage.getFriendlyUrl())?has_content>
56 <#assign
57 url = CALLTOACTIONFieldSet.CTA1FieldSet.CTA1LinkToPage.getFriendlyUrl()
58 pageTitle = getPageTitleFromUrl(adt_tool.getJSONFieldValue(CALLTOACTIONFieldSet.CTA1FieldSet.CTA1LinkToPage.getData(),"layoutId")?number)
59 />
60 <#else>
61 <#assign
62 url = CALLTOACTIONFieldSet.CTA1FieldSet.CTA1Url.getData()
63 pageTitle = ""
64 />
65 </#if>
66 <#assign target = getterUtil.getBoolean(CALLTOACTIONFieldSet.CTA1FieldSet.CTA1Blank.getData())?string("_blank","") />
67 <a class="product-card-cta btn btn-arrow" target="${target}" href="${url}" title="${pageTitle}">${CALLTOACTIONFieldSet.CTA1FieldSet.CTA1.getData()}</a>
68 </#if>
69
70 <#if (CALLTOACTIONFieldSet.CTA2FieldSet.CTA2.getData())?has_content>
71 <#if (CALLTOACTIONFieldSet.CTA2FieldSet.CTA2LinkToPage.getFriendlyUrl())?has_content>
72 <#assign
73 url = CALLTOACTIONFieldSet.CTA2FieldSet.CTA2LinkToPage.getFriendlyUrl()
74 pageTitle = getPageTitleFromUrl(adt_tool.getJSONFieldValue(CALLTOACTIONFieldSet.CTA2FieldSet.CTA2LinkToPage.getData(),"layoutId")?number)
75 />
76 <#else>
77 <#assign
78 url = CALLTOACTIONFieldSet.CTA2FieldSet.CTA2Url.getData()
79 pageTitle = getPageTitleFromUrl(url)
80 />
81 </#if>
82 <#assign target = getterUtil.getBoolean(CALLTOACTIONFieldSet.CTA2FieldSet.CTA2Blank.getData())?string("_blank","") />
83 <a class="product-card-cta btn btn-arrow" target="${target}" href="${url}" title="${pageTitle}">${CALLTOACTIONFieldSet.CTA2FieldSet.CTA2.getData()}</a>
84 </#if>
85
86 </div>
87 </div>
88 </div>
89 </div>
90</div>