Navigation


Alert Web

HeraAssetPublisherFilterComuneSelector

Choose the municipality

Ci dispiace, il servizio non è attivo nel tuo comune.
Esplora i servizi attivi nel tuo comune:
Inserisci un comune con il servizio di "Ambiente" oppure vai all'Homepage

Commitment for energy and climate

TESTATA Commitment for energy and climate

Commitment for energy and climate

[Menu] Energy Solutions for the Climate

an-error-occurred-while-processing-the-template
Can't convert this string to number: "{\"groupId\":\"1514726\",\"name\":\"Energy Solutions for the Climate\",\"id\":\"21c45a9d-6d0b-6d65-74d3-b421ec6d2a34\",\"privateLayout\":false,\"value\":\"/group_eng/sustainability/thematic-reports/energy-solutions-for-the-climate\",\"layoutId\":\"1171\"}"
The blamed expression:
==> PaginaDiPartenza.getData()?number  [in template "20099#20135#5640966" at line 45, column 183]

----
FTL stack trace ("~" means nesting-related):
	- Failed at: #assign layoutService = heraContribut...  [in template "20099#20135#5640966" at line 45, column 81]
----
1<#assign nomepagina = themeDisplay.getLayout().getName(locale) /> 
2<#assign 
3	title = .vars['reserved-article-title'].data 
4	vocabularyId = 0 
5	journalArticleServiceUtil = objectUtil("com.liferay.journal.service.JournalArticleServiceUtil") 
6	assetVocabularyServiceUtil = objectUtil("com.liferay.asset.kernel.service.AssetVocabularyServiceUtil") 
7	vocabulariesList = assetVocabularyServiceUtil.getGroupVocabularies(themeDisplay.getScopeGroupId()) 
8	journalArticle = journalArticleServiceUtil.getArticle(getterUtil.getLong(scopeGroupId), .vars['reserved-article-id'].data) 
9	assetCategoryServiceUtil = objectUtil("com.liferay.asset.kernel.service.AssetCategoryServiceUtil") 
10	journalArticleCategories = assetCategoryServiceUtil.getCategories("com.liferay.journal.model.JournalArticle", journalArticle.getResourcePrimKey()) 
11	nomecomune= languageUtil.get(locale, "comune-generico") 
12	actualUrl = themeDisplay.getLayout().getName(locale) 
13	comuniVar = languageUtil.get(locale, "COMUNI") 
14/> 
15<#list vocabulariesList as vocabulary> 
16    <#assign vocabularyName = vocabulary.getName() /> 
17    <#if vocabularyName==comuniVar> 
18        <#assign vocabularyId = vocabulary.getVocabularyId() /> 
19    </#if> 
20</#list> 
21<#assign listcomuni = [] /> 
22<#list journalArticleCategories as category> 
23	<#if category.vocabularyId == vocabularyId> 
24	    <#assign listcomuni = listcomuni + [category.name] /> 
25	</#if> 
26</#list> 
27<#list listcomuni as comune> 
28    <#if (listcomuni?size gt 0)> 
29    <#assign nomecomune=nomecomune +"@" + comune /> 
30    <#else> 
31    <#assign nomecomune=comune /> 
32    </#if> 
33</#list> 
34<input type="hidden" name="nomecomune" value="${nomecomune}" /> 
35<div class="container py-3"> 
36		<div class="row"> 
37				<div class="col-sm-2 pt-3"> 
38						<#if TestoIntroduttivo.getData() != ""> 
39								${TestoIntroduttivo.getData()} 
40						</#if> 
41				</div> 
42				<div class="col-sm-10"> 
43						<div class="row"> 
44								<div class="col-md-8 col-sm-12"> 
45										<#assign layoutService = heraContributorLocalService.getLayout(themeDisplay.getScopeGroupId(), false, PaginaDiPartenza.getData()?number) /> 
46										<#assign optionSelected = "" /> 
47										<#if actualUrl == layoutService.getName(locale)> 
48												<#assign optionSelected = "selected" /> 
49										</#if> 
50										<select style="word-wrap: break-word; white-space: -moz-pre-wrap; white-space: pre-wrap;" name="menu-minisito" onchange="location = this.value;"> 
51												<option value="${PaginaDiPartenza.getFriendlyUrl()}" ${optionSelected}>${layoutService.getName(locale)}</option> 
52												<#list layoutService.getAllChildren() as child> 
53														<#assign optionSelected = "" /> 
54														<#if actualUrl == child.getName(locale)> 
55																<#assign optionSelected = "selected" /> 
56														</#if> 
57														<option value="${child.getFriendlyURL()}" ${optionSelected}>${child.getName(locale)}</option> 
58												</#list> 
59										</select> 
60								</div> 
61								<div class="col-md-4 col-sm-12 pt-2"> 
62										<#if Documento.getSiblings()?has_content> 
63												<#list Documento.getSiblings() as cur_Documento> 
64														<#if cur_Documento.Icona.getData()?? && cur_Documento.Icona.getData() != ""> 
65																<div class="d-inline"> 
66																		<a href="${cur_Documento.getData()}" class="black"> 
67																				<img title="${nomepagina}" id="menu-minisito-img" alt="${cur_Documento.Icona.getAttribute("alt")}" src="${cur_Documento.Icona.getData()}" class="pr-2" /> 
68																		</a> 
69																</div> 
70														</#if> 
71														<div class="d-inline"> 
72																<a href="${cur_Documento.getData()}" class="black docdownload"><span>${cur_Documento.Titolo.getData()}</span></a> 
73														</div> 
74												</#list> 
75										</#if> 
76								</div> 
77						</div> 
78				</div> 
79		</div> 
80</div> 

Pre-Footer Standard

Hera SpA, Viale Carlo Berti Pichat 2/4, 40127 Bologna, Tel.051287111 www.gruppohera.it