Fehler bei der Verarbeitung der Vorlage.
The following has evaluated to null or missing: ==> cmsEntity.getLocalizedField(profile, "/entity/fields/title") [in template "20116#20152#301848" at line 4, column 25] ---- 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: #assign name = cmsEntity.getLocalized... [in template "20116#20152#301848" at line 4, column 9] ----
1<#include "${templatesPath}/300307" />
2<#list entities as cmsEntity>
3 <#if cmsEntity.getField("/entity/fields/title")?has_content>
4 <#assign name = cmsEntity.getLocalizedField(profile, "/entity/fields/title")>
5 <#else>
6 <#assign name = cmsEntity.getLocalizedField(profile, "/entity/fields/name")>
7 </#if>
8
9 <#if cmsEntity.getField(profile, "/entity/relationships/video")?has_content>
10 <#if cmsEntity.getField(profile, "/entity/relationships/video/properties/url")?has_content >
11 <#assign bgVideo = cmsEntity.getField(profile, "/entity/relationships/video/properties/url") >
12 </#if>
13 <#if cmsEntity.getField(profile, "/entity/relationships/video/assets/videoFiles")?has_content >
14 <#assign videoFiles = cmsEntity.getField(profile, "/entity/relationships/video/assets/videoFiles") >
15 <#assign bgVideo = videoFiles.get(0).url >
16 </#if>
17 </#if>
18
19 <#if cmsEntity.getLocalizedField(profile, "/entity/assets/mainImage")?has_content>
20 <#assign mainImage = cmsEntity.getLocalizedField(profile, "/entity/assets/mainImage")>
21 <#elseif cmsEntity.getField(profile, "/entity/assets/image")?has_content>
22 <#assign mainImage = cmsEntity.getField(profile, "/entity/assets/image/url")>
23 <#else>
24 <#assign mainImage = "">
25 </#if>
26
27 <#assign mobileImg = "">
28 <#if cmsEntity.getLocalizedField(profile, "/entity/assets/mobileMainImage")?has_content>
29 <#assign mobileMainImage = cmsEntity.getLocalizedField(profile, "/entity/assets/mobileMainImage") >
30 <#if mobileMainImage.url?has_content>
31 <#assign mobileImg = mobileMainImage.url>
32 </#if>
33 </#if>
34
35 <#assign entity = cmsEntity.getField(profile, "/entity") >
36 <#if cmsEntity.getField(profile, "/entity/fields/summary")?has_content>
37 <#assign summary = cmsContentFormatterService.getMarkdown(cmsEntity.getLocalizedField(profile, "/entity/fields/summary"))>
38 </#if>
39 <#if url?has_content>
40 <#assign pageUrl = url>
41 <#elseif cmsContentService.getUrlForEntity(themeDisplay, entity.id)?has_content>
42 <#assign pageUrl = cmsContentService.getUrlForEntity(themeDisplay, entity.id)>
43 <#elseif cmsEntity.getField(profile, "/entity/fields/url")?has_content>
44 <#assign pageUrl = cmsEntity.getField(profile, "/entity/fields/url")>
45 <#else>
46 <#assign pageUrl = "">
47 </#if>
48</#list>
49
50<div class="parallax-window <#if bgVideo??>d-xl-none</#if>" data-parallax="scroll"></div>
51<div class="gradient-layer-black-left <#if bgVideo??>d-xl-none</#if>"></div>
52
53
54 <section class="background">
55 <div class="container container-1440 container-padding <#if bgVideo??>d-xl-none</#if>">
56 <div class="row">
57 <div class="col-lg-6">
58 <h1 class="text-light product-page-heading">${name}</h1>
59
60 <#if cmsEntity.getField(profile, "/entity/fields/summary")?has_content>
61 <div class="product-page-intro text-light">${summary}</div>
62 </#if>
63 <#if pageUrl?has_content && callToAction?has_content>
64 <a class="btn btn-light btn-medium" href="${pageUrl}" role="button">
65 ${callToAction}
66 </a>
67 </#if>
68
69 </div>
70 </div>
71 </div>
72
73 <#if bgVideo??>
74 <div class="bg-video d-none d-xl-block">
75 <#if bgVideo?contains("youtube") || bgVideo?contains("youtu.be")>
76 <#if bgVideo?contains("youtu.be")>
77 <#-- ie. youtu.be/x_ptCvAzbKI -->
78 <#assign videoId = bgVideo?keep_after("youtu.be/") >
79 <#else>
80 <#-- ie. https://www.youtube.com/watch?v=x_ptCvAzbKI -->
81 <#assign videoId = bgVideo?replace("^.*\\?v=([\\w-_]*).*", "$1", "r") >
82 </#if>
83
84 <iframe frameborder="0" style="width: 100%; aspect-ratio: 16 / 9; border: none;" src="https://www.youtube-nocookie.com/embed/${videoId}?autoplay=1&controls=0&loop=1&mute=1&playlist=${videoId}"></iframe>
85 <#else>
86 <video muted="" playsinline="" autoplay="" loop="" style="background-image: url('${mainImage.url}');" >
87 <source src="${bgVideo}">
88 </video>
89 </#if>
90 <div class="video-content-container">
91 <div class="container container-1440 container-padding">
92 <div class="row">
93 <div class="col-lg-6">
94 <h1 class="text-light product-page-heading">${name}</h1>
95
96 <#if cmsEntity.getField(profile, "/entity/fields/summary")?has_content>
97 <div class="product-page-intro text-light">${summary}</div>
98 </#if>
99 <#if pageUrl?has_content && callToAction?has_content>
100 <a class="btn btn-light btn-medium" href="${pageUrl}" role="button">
101 ${callToAction}
102 </a>
103 </#if>
104
105 </div>
106 </div>
107 </div>
108 </div>
109
110 </div>
111
112 </#if>
113 </section>
114
115<@parallaxBackground url="${mainImage.url}" speed="0.4" mobileUrl="${mobileImg}" />