Une erreur s'est produite lors du traitement du gabarit.
The following has evaluated to null or missing: ==> backgroundImage.backgroundImageLink [in template "20116#20153#NEWSLETTERINTRO-1.0.0" at line 16, column 6] ---- 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 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: #if backgroundImage.backgroundImageLi... [in template "20116#20153#NEWSLETTERINTRO-1.0.0" at line 16, column 1] ---- 1<#include "${fullTemplatesPath}/newsletter_macros.ftl" >
2<#assign
3color=themeDisplay.getScopeGroup().getExpandoBridge().getAttribute("branding-color")!"#aa1a4d"
4pageUrl = themeDisplay.getLayout().getGroup().getPublicLayoutSet().getVirtualHostname()!"https://www.mitarbeitervorteile.de"
5imageUrl = themeDisplay.getCDNDynamicResourcesHost()?replace("https:", "http:")!""
6height = backgroundSize.getData()!400>
7<#if !height?has_content>
8 <#assign height = 400 />
9</#if>
10
11<#if pageUrl == "">
12 <#assign pageUrl = "mitarbeitervorteile.de" + themeDisplay.getPathFriendlyURLPublic() + themeDisplay.getLayout().getGroup().getFriendlyURL()>
13</#if>
14<#assign pageUrl = "https://" + pageUrl>
15
16<#if backgroundImage.backgroundImageLink.getData()?has_content>
17 <#assign pageUrl = pageUrl + backgroundImage.backgroundImageLink.getData() >
18</#if>
19
20<#if imageUrl == "" || imageUrl?contains("localhost")>
21 <#assign imageUrl = "http://static.mitarbeitervorteile.de">
22</#if>
23<#if !color?has_content>
24 <#assign color = "#aa1a4d">
25</#if>
26<!-- Newsletter Intro Start -->
27<table class="innerPortletContainer nlIntro" width="650">
28 <tr>
29 <td>
30 <#if
31 title?? && title.getData()?has_content ||
32 subtitle?? && subtitle.getData()?has_content ||
33 buttonText?? && buttonText.getData()?has_content
34 >
35 <table
36 style="width: 100%; height: ${height}px;" class="deviceWidth introImage">
37 <tr>
38 <td background="${imageUrl}${backgroundImage.getData()}"
39 style="background-image: url(${imageUrl}${backgroundImage.getData()}); background-position: center top; background-size: cover; background-color: #0E191D;">
40 <!--[if gte mso 9]>
41 <v:rect xmlns:v="urn:schemas-microsoft-com:vml" fill="true" stroke="false" style="width: 650px; height: ${height}px;">
42 <v:fill type="frame" src="${imageUrl}${backgroundImage.getData()}" color="#0E191D" />
43 <v:textbox inset="0,0,0,0">
44 <![endif]-->
45 <table>
46 <tr>
47 <td style="padding: 30px 30px 0;">
48 <b style="font-size: 40px;color:${textColor.getData()};">${title.getData()}</b>
49 </td>
50 </tr>
51 <#if subtitle??>
52 <tr>
53 <td style="font-size: 30px; padding: 0 30px 10px;color:${textColor.getData()};">${subtitle.getData()}</td>
54 </tr>
55 </#if>
56 <#if buttonText?? && buttonText.getData()?has_content>
57 <tr>
58 <td style="padding: 40px;">
59 <@printButton href=pageUrl text=buttonText.getData() color=color fullwidth=false/>
60 </td>
61 </tr>
62 </#if>
63 </table>
64 <!--[if gte mso 9]>
65 </v:textbox>
66 </v:rect>
67 <![endif]-->
68 </td>
69 </tr>
70 </table>
71 <#else >
72 <a href="${pageUrl}" style="text-decoration: none;">
73 <img style="width: 100%" src="${imageUrl}${backgroundImage.getData()}" alt="" />
74 </a>
75 </#if>
76
77
78 <table>
79 <tr>
80 <td style="padding: 10px;">
81 <b>${languageUtil.get(locale, "hello")} liebe(r) %%FIRST_NAME_REPLACER%% %%LAST_NAME_REPLACER%%,</b>
82 ${content.getData()}
83 </td>
84 </tr>
85 </table>
86
87 </td>
88 </tr>
89</table>
90<!-- Newsletter Intro END -->
|
|