Breadcrumb

List Content Viewer

An error occurred while processing the template.
The following has evaluated to null or missing:
==> portalUtil.getVirtualHostname  [in template "20115#20151#1357435" at line 223, column 35]

----
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 virtualHostURL = portalUtil.g...  [in template "20115#20151#1357435" in macro "printMarkup" at line 223, column 9]
	- Reached through: @printMarkup logoURL="https://www.leo...  [in template "20115#20151#1357435" at line 253, column 9]
----
1<@leonardo.articleInfo .vars "(T) News and Stories Detail"/> 
2<#macro downloadIcon> 
3	<svg xmlns="http://www.w3.org/2000/svg" width="14" height="18" viewBox="0 0 14 18"> 
4		<path fill="#000" fill-rule="nonzero" d="M6.61 12.763l-2.145-2.24a.58.58 0 0 1 0-.796c.211-.22.551-.22.762 0l1.235 1.29V6.75c0-.31.24-.563.538-.563.297 0 .538.252.538.563v4.267l1.235-1.29c.21-.22.551-.22.762 0a.58.58 0 0 1 0 .796l-2.145 2.24a.526.526 0 0 1-.78 0zM12.62 18H1.383C.62 18 0 17.368 0 16.592V5.037c0-.49.19-.968.52-1.314L3.565.544A1.728 1.728 0 0 1 4.82 0h7.797C13.38 0 14 .631 14 1.407v15.186C14 17.37 13.38 18 12.619 18zM4.82 1.125a.682.682 0 0 0-.496.214L1.282 4.52a.755.755 0 0 0-.205.518v11.555c0 .156.137.283.306.283h11.235c.168 0 .305-.127.305-.282V1.407c0-.155-.137-.282-.305-.282H4.821zm-.783 4.5H2.154a.551.551 0 0 1-.539-.563c0-.31.242-.562.539-.562h1.884c.15 0 .27-.126.27-.281V2.25c0-.31.24-.563.538-.563.297 0 .539.252.539.563v1.969c0 .775-.605 1.406-1.347 1.406zm6.193 9.563H3.769a.55.55 0 0 1-.538-.563.55.55 0 0 1 .538-.563h6.462a.55.55 0 0 1 .538.563.55.55 0 0 1-.538.563z"/> 
5	</svg> 
6</#macro> 
7 
8<#assign journalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService")> 
9<#assign languageId = languageUtil.getLanguageId(locale) /> 
10<#assign InformationDate_DateObj = dateUtil.parseDate("EEE, dd MMM yyyy HH:mm:ss Z", .vars['reserved-article-display-date'].data, localeUtil.getDefault())> 
11 
12<#assign currentGroupExpandoBridge = themeDisplay.getScopeGroup().getExpandoBridge()> 
13<#assign isDarkTheme = false> 
14<#if currentGroupExpandoBridge.hasAttribute("dark-theme")> 
15    <#assign isDarkTheme = currentGroupExpandoBridge.getAttribute("dark-theme", false)> 
16</#if> 
17 
18<#if (OverviewInformation.ContentTitle.getData())?has_content> 
19    <#assign VOID = portalUtil.setPageTitle(OverviewInformation.ContentTitle.getData(), themeDisplay.request) /> 
20</#if> 
21 
22<div class="newsandstories-detail"> 
23<#if HeroImage?has_content && HeroImage.getData()!=""> 
24	<div class="section-container section-container--fluid"> 
25		<#assign scalingDetails = { 
26			 "desktop": {"alternateImage": {}, "key": "w_1440"}, 
27			 "tl": {"alternateImage": HeroImage.HeroImageTl!, "key": "h_703"}, 
28			 "tp": {"alternateImage": HeroImage.HeroImageTp!, "key": "h_959"}, 
29			 "mobile": {"alternateImage": HeroImage.HeroImageM!, "key": "h_602"} 
30		}> 
31		<#assign slideImg = leonardo.adaptImage(HeroImage!, scalingDetails )> 
32		<!-- Image Banner --> 
33		<div class="hero"> 
34			<div class="hero-slide slide1"  
35				 data-img-url-d="${slideImg.desktop!}"  
36				 data-img-url-tl="${slideImg.tablet_landscape!}"  
37				 data-img-url-tp="${slideImg.tablet_portrait!}"  
38				 data-img-url-m="${slideImg.mobile!}" 
39				 style=''> 
40			<noscript> 
41				<img src="${slideImg.desktop!}" alt='${slideImg.alt_desktop!}'> 
42				<img src="${slideImg.tablet_landscape!}" alt='${slideImg.alt_tablet_landscape!}'> 
43				<img src="${slideImg.tablet_portrait!}" alt='${slideImg.alt_tablet_portrait!}'> 
44				<img src="${slideImg.mobile!}" alt='${slideImg.alt_mobile!}'> 
45			</noscript> 
46				<div class="hero-slide--content"> 
47					<h1 class="hero-slide--content--title"><@leonardo.escapeTitle title=OverviewInformation.ContentTitle.getData()/></h1> 
48					<div class="hero-slide--content--descriptions"> 
49						<div class="hero-slide--content--description"> 
50							<#if OverviewInformation?? && (OverviewInformation.InformationLocation.getData())?has_content> 
51								<@leonardo.escapeTitle title=OverviewInformation.InformationLocation.getData()/>&nbsp; 
52							</#if> 
53							${dateUtil.getDate(InformationDate_DateObj, "dd MMMM yyyy", locale)} 
54						</div> 
55						<#if (OverviewInformation.ContentSubtitle.getData())?has_content> 
56							<div class="hero-slide--content--description"><@leonardo.escapeTitle title=OverviewInformation.ContentSubtitle.getData()/></div> 
57						</#if> 
58					</div> 
59				</div> 
60				<@leonardo.shareLinkHero/> 
61			</div> 
62		</div> 
63	</div> 
64	<#if isDarkTheme && OverviewInformation.Occhiello?? && (OverviewInformation.Occhiello?has_content) && (OverviewInformation.Occhiello.getData()!="")> 
65		<div class="section-container section-container--fixed newsandstories news-stories--category"> 
66			<div class="internal-header"> 
67				${OverviewInformation.Occhiello.getData()?trim} 
68			</div> 
69		</div> 
70	</#if> 
71	<#if (OverviewInformation.ContentTitle.getData())?has_content> 
72		<div class="section-container section-container--fixed newsandstories"> 
73			<div class="internal-header"> 
74				<#if (OverviewInformation.Abstract.getData())?has_content && (OverviewInformation.Abstract.getData()!)?length gt 1> 
75					<div class="internal-header--description">${OverviewInformation.Abstract.getData()}</div> 
76				</#if> 
77			</div> 
78		</div> 
79	</#if> 
80<#else> 
81	<#if isDarkTheme && OverviewInformation.Occhiello?? && (OverviewInformation.Occhiello?has_content) && (OverviewInformation.Occhiello.getData()!="")> 
82		<div class="section-container section-container--fixed newsandstories news-stories--category"> 
83			<div class="internal-header"> 
84				${OverviewInformation.Occhiello.getData()?trim} 
85			</div> 
86		</div> 
87	</#if> 
88	<#if (OverviewInformation.ContentTitle.getData())?has_content> 
89		<div class="section-container section-container--fixed newsandstories"> 
90			<div class="internal-header"> 
91				<h1 class="internal-header--header"><@leonardo.escapeTitle title=OverviewInformation.ContentTitle.getData()/></h1> 
92				<#if (OverviewInformation.ContentSubtitle.getData())?has_content> 
93					<h2 class="internal-header--header--small"><@leonardo.escapeTitle title=OverviewInformation.ContentSubtitle.getData()/></h2> 
94				</#if> 
95				<#if (OverviewInformation.Abstract.getData())?has_content && (OverviewInformation.Abstract.getData()!)?length gt 1> 
96					<div class="internal-header--description">${OverviewInformation.Abstract.getData()}</div> 
97				</#if> 
98			</div> 
99		</div> 
100	</#if> 
101</#if> 
102<#if (OverviewInformation.SeparatorContent)?has_content> 
103	<#list OverviewInformation.SeparatorContent.getSiblings() as currentArea> 
104		<#if currentArea.ContentHtml?? && currentArea.ContentHtml.getData() != ""> 
105			<div class="section-container section-container--fixed newsandstories"> 
106				<div class="section-content location-date"> 
107					<div class="section-content--content"> 
108						<#if currentArea?is_first> 
109							<p class="content-secondary"> 
110							<#if !(HeroImage?has_content) || HeroImage.getData()==""> 
111								<#if OverviewInformation?? && (OverviewInformation.InformationLocation.getData())?has_content> 
112									<@leonardo.escapeTitle title=OverviewInformation.InformationLocation.getData()/>&nbsp; 
113								</#if> 
114								${dateUtil.getDate(InformationDate_DateObj, "dd MMMM yyyy", locale)} 
115							</#if> 
116							</p> 
117						</#if>	 
118						<#if (currentArea.TitleContent)?has_content && currentArea.TitleContent.getData()!=""> 
119								</div> 
120							</div> 
121							<div class="section-heading d-align-center tl-wider-side-padding">${currentArea.TitleContent.getData()!}</div> 
122							<div class="section-content"> 
123								<div class="section-content--content"> 
124						</#if> 
125						<#assign htmlFormatted = leonardo.expandElementsInPage(currentArea.ContentHtml.getData())> 
126						<div class="check-html-content">${htmlFormatted}</div> 
127					</div> 
128					<#if currentArea?is_last> 
129						<div class="section-content--action-items"> 
130							<#if AttachmentSeparator?has_content > 
131								<#list AttachmentSeparator.getSiblings() as cur_Attach> 
132									<#if cur_Attach.Attachment?? && cur_Attach.Attachment.getData() != "" > 
133										<div class="section-content--action-items--download"> 
134											<#assign file_info = leonardo.findFileEntryInfo(cur_Attach.Attachment.getData()) > 
135											<a class="section-content--action-items--download--link"  
136												href="${file_info.downloadUrl}"  
137												target="_blank"  
138												title="${(file_info.title)!cur_Attach.AttachmentTitle.getData()!}"> 
139												<@downloadIcon /> 
140												<span class="section-content--action-items--download--link--filename"> 
141													${cur_Attach.AttachmentTitle.getData()!(file_info.title)!} 
142													<#if (file_info.fileSize)?has_content> 
143														(${file_info.mimeType!}, ${file_info.fileSize!} KB) 
144													</#if> 
145												</span> 
146											</a> 
147										</div> 
148									</#if> 
149								</#list> 
150							</#if> 
151							<#if LinkToPageSeparator?has_content > 
152								<#list LinkToPageSeparator.getSiblings() as cur_Link> 
153									<#assign targetUrl=leonardo.getTargetUrl(cur_Link.GenericLink, cur_Link.LinkToPage)!> 
154									<#if targetUrl?has_content> 
155										<#assign target=leonardo.getTarget(cur_Link.LinkTarget!)!> 
156										<div class="section-content--action-items--navigate"> 
157											<a class="section-content--action-items--navigate--link"  
158												href="${targetUrl}"  
159												target = "${target}"  
160												title="${cur_Link.LinkTitle.data!}"> 
161												${cur_Link.LinkTitle.data!} 
162												<span class="icon--navigate"></span> 
163											</a> 
164										</div> 
165									</#if> 
166								</#list> 
167							</#if> 
168						</div> 
169					</#if> 
170				</div> 
171				<#if currentArea?is_first> 
172					<#if !(HeroImage?has_content) || HeroImage.getData()==""> 
173						<@leonardo.shareLink/> 
174					</#if> 
175				</#if> 
176			</div> 
177		</#if> 
178		<#if currentArea.WebContentdpkw?? && currentArea.WebContentdpkw.getData() != ""> 
179			<#assign data = currentArea.WebContentdpkw.getData()/> 
180			<#assign json = jsonFactoryUtil.createJSONObject(data) /> 
181			<#assign classPK = json.getLong("classPK") /> 
182			<#if (classPK >0) > 
183				<#assign ja = journalArticleLocalService.getLatestArticle(classPK) /> 
184				<#assign jad = journalArticleLocalService.getArticleDisplay(ja, ja.getTemplateId(), "", languageId, 1, null, themeDisplay) />  
185				${jad.getContent()} 
186			</#if> 
187		</#if> 
188	</#list> 
189</#if> 
190</div> 
191 
192<#if HeroImage?has_content && HeroImage.getData()!=""> 
193	<script type="text/javascript"> 
194		$(document).ready(function() { 
195			$('.header.header--opaque').removeClass('header--opaque'); 
196			$('.breadcrumbs--container').parent().addClass('breadcrumbs--on-hero') 
197		}); 
198	</script> 
199</#if> 
200 
201<!-- Social Sharing --> 
202<#assign imageFileName = (slideImg.desktop)!"" > 
203<#assign shareTitle = (OverviewInformation.ContentTitle.getData())!""> 
204<#assign shareDescription = (OverviewInformation.Abstract.getData())!""> 
205 
206<#if (PrimaryImage.getData())?has_content> 
207	<#assign imageFileName = PrimaryImage.getData() > 
208<#elseif (PrimaryImageAssoc.getData())?has_content > 
209	<#assign imageFileName = PrimaryImageAssoc.getData() > 
210<#else> 
211	<#assign imageFileName = ""> 
212</#if> 
213<#assign ogType='article'> 
214	 
215<@leonardo.socialShareMetaAndLinks shareTitle=shareTitle shareDescription=shareDescription imageFileName=imageFileName ogType=ogType /> 
216 
217<#-- markup --> 
218<#macro printMarkup logoURL> 
219	<#assign journalArticleId = .vars['reserved-article-id'].data> 
220	<#assign journalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService")> 
221	<#assign jArticle = journalArticleLocalService.getArticle(groupId, journalArticleId) > 
222	<#-- Detail URL  --> 
223	<#assign virtualHostURL = portalUtil.getVirtualHostname (themeDisplay.getLayout().getLayoutSet())> 
224	<#assign absolutePageUrl = ""> 
225	<#if (virtualHostURL?has_content && virtualHostURL != "")> 
226		<#assign absolutePageUrl = "https://" + virtualHostURL > 
227	<#else> 
228		<#assign absolutePageUrl = portalUtil.getPortalURL(themeDisplay.getLayout(), themeDisplay)> 
229	</#if>	 
230	<#assign articleUrlTitle = jArticle.getUrlTitle()> 
231	<#assign detailUrl = absolutePageUrl+(themeDisplay.i18nPath!"")+"/news-and-stories-detail/-/detail/"+articleUrlTitle > 
232	<#assign Modified_DateObj = dateUtil.parseDate("EEE, dd MMM yyyy HH:mm:ss Z", .vars['reserved-article-modified-date'].data, localeUtil.getDefault())> 
233 
234	<script type="application/ld+json"> 
235	{ "@context": "http://schema.org", 
236	"@type": "Article", 
237	"url":"${detailUrl}", 
238	"name": "${shareTitle}", 
239	"image": "${(imageFileName?has_content)?then(absolutePageUrl + imageFileName,'')}", 
240	"headline": "${shareTitle}", 
241	"datePublished": "${dateUtil.getDate(InformationDate_DateObj, 'yyyy-MM-dd', locale)}T${dateUtil.getDate(InformationDate_DateObj, 'HH:mm:ss',locale)}+0000", 
242	"dateModified": "${dateUtil.getDate(Modified_DateObj, 'yyyy-MM-dd', locale)}T${dateUtil.getDate(Modified_DateObj, 'HH:mm:ss',locale)}+0000", 
243	"author": { "@type": "Organization", 
244	"name": "Leonardo S.p.A." }, 
245	"publisher": { 
246	"@type": "Organization", 
247	"name": " Leonardo S.p.A.", 
248	"logo": { "@type": "ImageObject", 
249	"url": "${logoURL}"} } } 
250	</script> 
251</#macro> 
252<#if (themeDisplay.scopeGroup.friendlyURL)?keep_after_last("/") == 'guest'> 
253	<@printMarkup logoURL="https://www.leonardocompany.com/o/leonardocompany-theme/images/logo-with-text-resized.png"/> 
254</#if> 

highlight-web Portlet

Other news & stories

17.12.2021
Satellite technology to monitor and fight climate change in cities: urban heat islands

Our journey into the world of sustainability continues in December through the images of the Telespazio and e-GEOS 2021 Love Planet Earth calendar, featuring shots from National Geographic. This month, we focus on the role of satellites in monitoring and fighting the effects of extreme weather in cities.

17.12.2021
Satellite technology to monitor and fight climate change in cities: urban heat islands

Our journey into the world of sustainability continues in December through the images of the Telespazio and e-GEOS 2021 Love Planet Earth calendar, featuring shots from National Geographic. This month, we focus on the role of satellites in monitoring and fighting the effects of extreme weather in cities.

News alert

Subscribe to news alerts

Subscribe to news alerts

Receive latest updates about Leonardo in your mailbox