News - Page title

Lavora con noi

News

Aplicaciones anidadas

News Lavora con noi - Search Bar

Publicador de contenidos

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