Une erreur s'est produite lors du traitement du gabarit.
The following has evaluated to null or missing: ==> serviceLocator.findService("com.avisonyoung.portal.ui.service.GroupServiceUtil") [in template "20302#20342#RESEARCH_REPORTS" at line 14, column 29] ---- 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 groupServiceUtil = serviceLoc... [in template "20302#20342#RESEARCH_REPORTS" at line 14, column 1] ----
1<#setting date_format="long">
2
3<#-- Retrieve the display date meta data field of the web content -->
4<#assign displayDate = .vars['reserved-article-display-date'].data>
5<#-- Save the original page locale for later -->
6<#assign originalLocale = locale>
7<#-- Set the page locale to the portals default locale -->
8<#setting locale = localeUtil.getDefault()>
9<#-- Parse the date to a date object -->
10<#assign displayDate = displayDate?datetime("EEE, d MMM yyyy HH:mm:ss Z")>
11<#-- Set the page locale back to the original page locale -->
12<#setting locale = originalLocale>
13
14<#assign groupServiceUtil = serviceLocator.findService("com.avisonyoung.portal.ui.service.GroupServiceUtil")>
15<#assign treePath = groupServiceUtil.getGroupFriendlyUrlTreePath(groupId)>
16<#assign cdnCgiPath = "https://www-cdn01.avisonyoung.com/cdn-cgi/image/h=345,q=85">
17<style>
18 /* Your CSS styles here */
19</style>
20
21<div class="ay-news-release">
22 <h2 id="ay-artTitle" class="h2">${Content.getData()}</h2>
23 <#if (Image?? && Image.getData()?has_content && Image.getData() != "")>
24 <img src="${cdnCgiPath}${Image.getData()}" alt="${Content.getData()}">
25 </#if>
26 <small>${displayDate?date?string}</small>
27 <div class="ay-news-release__content">
28 <#if Sub_Title?? && Sub_Title.getData()?has_content>
29 <h3 class="ay-news-release__subtitle">${Sub_Title.getData()}</h3>
30 </#if>
31 ${Research_Detail_Content.getData()}
32 <#assign boilerplate = Research_Boilerplate_Content.getData()>
33 <#if boilerplate?? && boilerplate?has_content>
34 <div class="ay-news-release__boiler">
35 ${boilerplate}
36 </div>
37 </#if>
38 <div class="ay-news-release__social">
39 <a id="ay-email-to" href="#" target="_blank" class="ay-news-release__social--item">
40 <svg class="ay-news-release__social--icon">
41 <use xlink:href="/o/ay-theme/resources/images/images.svg#email" />
42 </svg>
43 </a>
44 <a id="ay-social-twitter" href="#" class="ay-news-release__social--item" target="_blank">
45 <svg class="ay-news-release__social--icon">
46 <use xlink:href="/o/ay-theme/resources/images/images.svg#twitter1" />
47 </svg>
48 </a>
49 <a id="ay-social-facebook" href="#" class="ay-news-release__social--item" target="_blank">
50 <svg class="ay-news-release__social--icon">
51 <use xlink:href="/o/ay-theme/resources/images/images.svg#facebook" />
52 </svg>
53 </a>
54 <a id="ay-social-linkedin" href="#" class="ay-news-release__social--item" target="_blank">
55 <svg class="ay-news-release__social--icon">
56 <use xlink:href="/o/ay-theme/resources/images/images.svg#linkedin1" />
57 </svg>
58 </a>
59 <#if treePath?contains("/ay/de/")>
60 <a id="ay-social-xming" href="#" class="ay-news-release__social--item" target="_blank">
61 <svg class="ay-news-release__social--icon">
62 <use xlink:href="/o/ay-theme/resources/images/images.svg#xing-social" />
63 </svg>
64 </a>
65 </#if>
66 </div>
67 </div>
68</div>
69
70<#assign newsTitle = Content.getData()>
71
72<script>
73 function socialLinks() {
74 var uri = window.location;
75 uri = uri.toString();
76 var ofLoc = $(".ay-header-options h3 a").html();
77 var enc = encodeURIComponent(uri);
78 var prtitle = $("#ay-artTitle").html();
79 prtitle = encodeURI(prtitle);
80 var mailtoSub = "Avison Young - " + ofLoc + " News: ";
81 mailtoSub = encodeURI(mailtoSub);
82
83 $("#ay-social-twitter").attr("href", "https://twitter.com/intent/tweet?url=" + enc + "&text=" + prtitle + "&via=AvisonYoung");
84 $("#ay-social-facebook").attr("href", "https://www.facebook.com/sharer/sharer.php?u=" + enc);
85 $("#ay-social-linkedin").attr("href", "https://www.linkedin.com/cws/share?url=" + enc);
86
87 <#if treePath?contains("/ay/de/")>
88 $("#ay-social-xming").attr("href", "https://www.xing.com/spi/shares/new?url=" + enc);
89 </#if>
90
91 $("#ay-email-to").attr("href", "mailto:?subject=" + mailtoSub + prtitle + "&body=" + enc);
92 }
93
94 $(document).ready(function() {
95 socialLinks();
96 });
97</script>
98
99<style>
100 .ay-news-release__content {
101 min-height: 150px;
102 }
103</style>