Ufficio Immagine e Comunicazione
Caroli Giuliana
Questo sito o gli strumenti terzi da questo utilizzati si avvalgono di cookie necessari al funzionamento ed utili alle finalità illustrate nella cookie policy. Se vuoi saperne di più o negare il consenso a tutti o ad alcuni cookie, consulta la cookie policy. Cliccando su un link o proseguendo la navigazione in altra maniera, acconsenti all’uso dei cookie.
Press Area
The following has evaluated to null or missing: ==> dict_filters [in template "20101#20128#54395" at line 109, column 17] ---- 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: ${dict_filters} [in template "20101#20128#54395" at line 109, column 15] ----
1<#assign assetEntryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryLocalService")>
2<#assign dlFileEntryLocalService = serviceLocator.findService("com.liferay.document.library.kernel.service.DLFileEntryLocalService")>
3
4<#if themeDisplay.getLanguageId() == "en_US">
5 <#assign dict_01 = "January">
6 <#assign dict_02 = "February">
7 <#assign dict_03 = "March">
8 <#assign dict_04 = "April">
9 <#assign dict_05 = "May">
10 <#assign dict_06 = "June">
11 <#assign dict_07 = "July">
12 <#assign dict_08 = "August">
13 <#assign dict_09 = "September">
14 <#assign dict_10 = "October">
15 <#assign dict_11 = "November">
16 <#assign dict_12 = "December">
17 <#assign dict_all = "See all">
18 <#assign dict_filters = "Open filters">
19 <#assign dict_confirm_filters = "Confirm filters">
20 <#assign dict_archive = "Archive">
21<#elseif themeDisplay.getLanguageId() == "it_IT">
22 <#assign dict_01 = "Gennaio">
23 <#assign dict_02 = "Febbraio">
24 <#assign dict_03 = "Marzo">
25 <#assign dict_04 = "Aprile">
26 <#assign dict_05 = "Maggio">
27 <#assign dict_06 = "Giugno">
28 <#assign dict_07 = "Luglio">
29 <#assign dict_08 = "Agosto">
30 <#assign dict_09 = "Settembre">
31 <#assign dict_10 = "Ottobre">
32 <#assign dict_11 = "Novembre">
33 <#assign dict_12 = "Dicembre">
34 <#assign dict_all = "Mostra tutto">
35 <#assign dict_filters = "Apri filtri">
36 <#assign dict_confirm_filters = "Conferma filtri">
37 <#assign dict_archive = "Archivio">
38</#if>
39
40<div class="container news-container" id="press-area">
41 <div class="news-list col-lg-10 col-md-9 col-sm-12">
42 <#list entries as curEntry>
43
44 <#assign entry = curEntry />
45 <#assign assetRenderer = entry.getAssetRenderer() />
46 <#assign viewURL0 = assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse, curEntry) />
47 <#assign viewURL = assetRenderer.getURLViewInContext(renderRequest, renderResponse, viewURL0)?keep_before_last("/") />
48 <#assign viewURL = viewURL?keep_before("/-") + '/press-area/' + viewURL?keep_after_last("/") />
49 <#assign journalArticle = assetRenderer.getArticle() />
50 <#assign document = saxReaderUtil.read(journalArticle.getContentByLocale(locale.toString())) />
51
52<#-- <#assign entry = curEntry />-->
53<#-- <#assign assetRenderer = entry.getAssetRenderer() />-->
54<#-- <#assign viewURL0 = assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse, curEntry) />-->
55<#-- <#assign viewURL = assetRenderer.getURLViewInContext(renderRequest, renderResponse, viewURL0)?keep_before_last("/") />-->
56<#-- <#assign journalArticle = assetRenderer.getArticle() />-->
57<#-- <#assign document = saxReaderUtil.read(journalArticle.getContentByLocale(locale.toString())) />-->
58
59 <#function getArticleDLEntryUrl xmlValue>
60 <#local docUrl = "" />
61
62 <#if xmlValue?has_content>
63 <#local jsonObject = xmlValue?eval />
64
65 <#local entryUuid = jsonObject.uuid />
66 <#local entryGroupId = getterUtil.getLong(jsonObject.groupId) />
67
68 <#local dlFileEntry = dlFileEntryLocalService.getDLFileEntryByUuidAndGroupId(entryUuid, entryGroupId) />
69
70 <#local assetEntry = assetEntryLocalService.getEntry("com.liferay.document.library.kernel.model.DLFileEntry", dlFileEntry.fileEntryId) />
71 <#local assetRenderer = assetEntry.assetRenderer />
72
73 <#local docUrl = assetRenderer.getURLDownload(themeDisplay) />
74 </#if>
75 <#return docUrl />
76 </#function>
77
78 <#assign nodeImmagineDiAnteprima = document.selectSingleNode("/root/dynamic-element[@name='ImmagineDiAnteprima']/dynamic-content") />
79 <#assign ImmagineDiAnteprima = nodeImmagineDiAnteprima.getText() />
80
81 <#assign nodeTitolo = document.selectSingleNode("/root/dynamic-element[@name='Titolo']/dynamic-content") />
82 <#assign Titolo = nodeTitolo.getText() />
83
84 <#assign nodeData = document.selectSingleNode("/root/dynamic-element[@name='Data']/dynamic-content") />
85 <#assign Data = nodeData.getText()?date("yyyy-MM-dd")?string("dd.MM.yyyy") />
86
87 <#assign Year = nodeData.getText()?date("yyyy-MM-dd")?string("yyyy") />
88 <#assign Month = nodeData.getText()?date("yyyy-MM-dd")?string("MM") />
89
90 <#assign nodeTestoDiAnteprima = document.selectSingleNode("/root/dynamic-element[@name='TestoDiAnteprima']/dynamic-content") />
91 <#assign TestoDiAnteprima = nodeTestoDiAnteprima.getText() />
92
93 <div class="single-news col-lg-6 col-md-6 col-sm-12 show" adc-year="${Year}" adc-month="${Month}">
94 <a class="single-news-link" href="${viewURL}">
95 <div class="single-news-image">
96 <img src="${getArticleDLEntryUrl(ImmagineDiAnteprima)}" alt="${Titolo}" />
97 </div>
98 <div class="single-news-description">
99 <div class="date">${Data}</div>
100 <div class="title">${Titolo}</div>
101 <div class="excerpt">${TestoDiAnteprima}</div>
102 <div class="adc-icn-arrow-tail"></div>
103 </div>
104 </a>
105 </div>
106 </#list>
107 </div>
108 <div class="responsive-open-filters-button">
109 <span>${dict_filters}</span>
110 </div>
111 <div class="filter-news col-lg-2 col-md-3 col-sm-12">
112 <div class="title-filters">
113 <span>${dict_archive}</span>
114 </div>
115 <div class="filters">
116 <#assign yearsList = []>
117 <#assign monthsList = []>
118 <#list entries as curEntry>
119
120 <#assign entry = curEntry />
121 <#assign assetRenderer = entry.getAssetRenderer() />
122 <#assign viewURL0 = assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse, curEntry) />
123 <#assign viewURL = assetRenderer.getURLViewInContext(renderRequest, renderResponse, viewURL0)?keep_before_last("/") />
124 <#assign viewURL = viewURL?keep_before("/-") + '/news/' + viewURL?keep_after_last("/") />
125 <#assign journalArticle = assetRenderer.getArticle() />
126 <#assign document = saxReaderUtil.read(journalArticle.getContentByLocale(locale.toString())) />
127
128<#-- <#assign entry = curEntry />-->
129<#-- <#assign assetRenderer = entry.getAssetRenderer() />-->
130<#-- <#assign viewURL0 = assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse, curEntry) />-->
131<#-- <#assign viewURL = assetRenderer.getURLViewInContext(renderRequest, renderResponse, viewURL0)?keep_before_last("/") />-->
132<#-- <#assign journalArticle = assetRenderer.getArticle() />-->
133<#-- <#assign document = saxReaderUtil.read(journalArticle.getContentByLocale(locale.toString())) />-->
134
135 <#function getArticleDLEntryUrl xmlValue>
136 <#local docUrl = "" />
137
138 <#if xmlValue?has_content>
139 <#local jsonObject = xmlValue?eval />
140
141 <#local entryUuid = jsonObject.uuid />
142 <#local entryGroupId = getterUtil.getLong(jsonObject.groupId) />
143
144 <#local dlFileEntry = dlFileEntryLocalService.getDLFileEntryByUuidAndGroupId(entryUuid, entryGroupId) />
145
146 <#local assetEntry = assetEntryLocalService.getEntry("com.liferay.document.library.kernel.model.DLFileEntry", dlFileEntry.fileEntryId) />
147 <#local assetRenderer = assetEntry.assetRenderer />
148
149 <#local docUrl = assetRenderer.getURLDownload(themeDisplay) />
150 </#if>
151 <#return docUrl />
152 </#function>
153
154 <#assign nodeData = document.selectSingleNode("/root/dynamic-element[@name='Data']/dynamic-content") />
155 <#assign Year = nodeData.getText()?date("yyyy-MM-dd")?string("yyyy") />
156 <#assign Month = nodeData.getText()?date("yyyy-MM-dd")?string("MM") />
157
158 <#if yearsList?seq_contains(Year)>
159 <#if !monthsList?seq_contains(Year+"."+Month)>
160 <#assign monthsList = monthsList + [Year+"."+Month]>
161 </#if>
162 <#else>
163 <#assign yearsList = yearsList + [Year]>
164 <#assign monthsList = monthsList + [Year+"."+Month]>
165 </#if>
166
167 </#list>
168
169 <#list yearsList?sort?reverse as curYear>
170
171 <div class="year-container">
172 <div class="year year-${curYear}"> ${curYear} </div>
173
174 <div class="months-container">
175 <#list monthsList?sort?reverse as curMonth>
176 <#if curMonth?contains(curYear)>
177 <#assign monthArray = curMonth?split(".")>
178 <a class="month" adc-year="${curYear}" adc-month="${monthArray[1]}">
179 <#if monthArray[1] == "01">
180 ${dict_01}
181 <#elseif monthArray[1] == "02">
182 ${dict_02}
183 <#elseif monthArray[1] == "03">
184 ${dict_03}
185 <#elseif monthArray[1] == "04">
186 ${dict_04}
187 <#elseif monthArray[1] == "05">
188 ${dict_05}
189 <#elseif monthArray[1] == "06">
190 ${dict_06}
191 <#elseif monthArray[1] == "07">
192 ${dict_07}
193 <#elseif monthArray[1] == "08">
194 ${dict_08}
195 <#elseif monthArray[1] == "09">
196 ${dict_09}
197 <#elseif monthArray[1] == "10">
198 ${dict_10}
199 <#elseif monthArray[1] == "11">
200 ${dict_11}
201 <#elseif monthArray[1] == "12">
202 ${dict_12}
203 </#if>
204 <#-- ${monthArray[1]}-->
205 </a>
206 </#if>
207 </#list>
208 </div>
209 </div>
210 </#list>
211 </div>
212 <div class="responsive-close-filters-button">
213 <span>${dict_confirm_filters}</span>
214 </div>
215 <div class="remove-filters">
216 <span>${dict_all}</span>
217 </div>
218 </div>
219</div>