Si è verificato un errore nell'elaborarazione del modello.
The following has evaluated to null or missing: ==> httpUtil.encodeURL [in template "51632#51678#129847" at line 71, column 71] ---- 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: ${httpUtil.encodeURL(absoluteURL)} [in template "51632#51678#129847" at line 71, column 69] ----
1<#--sella social macro -->
2<#include "${templatesPath}/SOCIAL-SHARE-MACRO" />
3
4<#assign originalLocale = locale>
5<#setting locale = 'en_US'>
6<#assign date = .vars['reserved-article-display-date'].data/>
7<#assign date = date?datetime("EEE, d MMM yyyy HH:mm:ss Z") />
8<#setting locale = originalLocale>
9<#assign dateTimeFormat = languageUtil.get(locale, "HH:mm, dd MMM yyyy")>
10<#assign jaAbstract = .vars['reserved-article-description'].data />
11<#assign title = .vars['reserved-article-title'].data />
12<#assign absoluteURL = themeDisplay.getPortalURL() + themeDisplay.getURLCurrent() />
13
14<#if CustomTitle?? && CustomTitle.getData()?has_content >
15 <#assign title = CustomTitle.getData() />
16</#if>
17<article class="article-detail article-detail--has-img">
18 <#-- Info + Social -->
19 <div class="container">
20 <div class="row">
21 <div class="col-md-10 offset-md-1">
22 <div class="article-detail__intro">
23 <div class="row">
24 <div class="col-lg-8">
25 <#-- Data -->
26 <div class="d-flex">
27
28 <div class="article-detail__date">${date?string(dateTimeFormat)}</div>
29 </div>
30 <#-- Titolo -->
31 <h1 class="article-detail__title">${title}</h1>
32 <#if jaAbstract?has_content>
33 <h2 class="article-detail__subject">${jaAbstract}</h2>
34 </#if>
35 </div>
36 </div>
37 <div class="row">
38 <div class="col-12">
39 <div class="article-detail__button d-flex">
40 <#-- Share button -->
41 <div class="sella-share clearfix">
42 <div class="sella-share__icon sella-share__icon--share">
43 <svg class="ico-svg">
44 <use xlink:href="${themeDisplay.getPathThemeImages()}/assets/images/icons.svg#share-alt"></use>
45 </svg>
46 </div>
47 <div class="sella-share__text">Condividi</div>
48 <ul>
49 <li>
50 <a href="http://www.facebook.com/sharer.php?u=${absoluteURL}" title="Facebook" class="sella-share__icon sella-share__icon--fb">
51 <svg class="ico-svg">
52 <use xlink:href="${themeDisplay.getPathThemeImages()}/assets/images/icons.svg#facebook-f"></use>
53 </svg>
54 </a>
55 </li>
56 <li>
57 <a href="https://twitter.com/home?status=${absoluteURL}" title="Twitter" class="sella-share__icon sella-share__icon--twitter">
58 <svg class="ico-svg">
59 <use xlink:href="${themeDisplay.getPathThemeImages()}/assets/images/icons.svg#twitter"></use>
60 </svg>
61 </a>
62 </li>
63 <li>
64 <a href="http://www.linkedin.com/shareArticle?mini=true&url=${absoluteURL}&title=${title}&summary=${jaAbstract}&source=" title="LinkedIn" class="sella-share__icon sella-share__icon--linkedin">
65 <svg class="ico-svg">
66 <use xlink:href="${themeDisplay.getPathThemeImages()}/assets/images/icons.svg#linkedin-in"></use>
67 </svg>
68 </a>
69 </li>
70 <li>
71 <a href="https://api.whatsapp.com/send?text=${httpUtil.encodeURL(absoluteURL)}" title="WahtsApp" class="sella-share__icon sella-share__icon--whatsapp">
72 <svg class="ico-svg">
73 <use xlink:href="${themeDisplay.getPathThemeImages()}/assets/images/icons.svg#whatsapp"></use>
74 </svg>
75 </a>
76 </li>
77 </ul>
78 </div>
79 </div>
80 </div>
81 </div>
82 </div>
83 </div>
84 </div>
85 </div>
86
87<#if Cover?? && Cover?has_content >
88 <#if Cover.getData()?? && Cover.getData() != "">
89 <#assign alt = "" />
90 <#if Cover.getAttribute("alt")?has_content>
91 <#assign alt = Cover.getAttribute("alt") />
92 </#if>
93 <div class="sella-container sella-container--only-img">
94 <div class="container-fluid">
95 <div class="row">
96 <div class="col-lg-10 offset-lg-1">
97 <figure class="article-detail__fig">
98 <#assign w100Class="" />
99 <#if alt?has_content>
100 <#assign w100Class="w-100" />
101 </#if>
102 <img src="${Cover.getData()}" alt="${alt}" class="article-detail__img ${w100Class}">
103
104 <#assign cover800x533 = themeDisplay.getPortalURL() + sella_tool.getAdaptiveMediaSrc("800-x-533-px",Cover.getAttribute("fileEntryId")?number,Cover.name) />
105 <@shareContent title="${title}" summary="${alt}" detailURL="${absoluteURL}" imageURL="${cover800x533}"/>
106 <#if alt?has_content>
107 <figcaption class="article-detail__figcaption">${alt}</figcaption>
108 </#if>
109 </figure>
110 </div>
111 </div>
112 </div>
113 </div>
114 </#if>
115</#if>
116
117<#-- testo -->
118<#if Body?? && Body.getData() != "">
119 <div class="container">
120 <div class="row">
121 <div class="col-md-8 offset-md-2 col-xl-6 offset-xl-3">
122 <div class="article-detail__text">
123 ${Body.getData()}
124 </div>
125 </div>
126 </div>
127 </div>
128</#if>
129
130<style>
131 .article-detail__fig img {
132 max-width: 500px!important;
133 }
134</style>