Turismo - Toscana Notizie
Si è verificato un errore nell'elaborarazione del modello.
Java method "com.liferay.portal.json.JSONFactoryImpl.createJSONObject(String)" threw an exception when invoked on com.liferay.portal.json.JSONFactoryImpl object "com.liferay.portal.json.JSONFactoryImpl@2f8893ee"; see cause exception in the Java stack trace. ---- FTL stack trace ("~" means nesting-related): - Failed at: #assign json = jsonFactoryUtil.create... [in template "10154#10192#21500458" at line 104, column 37] ----
1<#setting locale="it_IT">
2
3<#assign siteBaseURL = themeDisplay.getPortalURL() + themeDisplay.getPathFriendlyURLPublic() + themeDisplay.getLayout().getGroup().getFriendlyURL() />
4<#assign DLFileEntryLocalServiceUtil = staticUtil["com.liferay.document.library.kernel.service.DLFileEntryLocalServiceUtil"] />
5<#assign imagePath = themeDisplay.getTheme().getContextPath() + themeDisplay.getTheme().getImagesPath() />
6<#assign AssetVocabularyServiceUtil = staticUtil["com.liferay.asset.kernel.service.AssetVocabularyServiceUtil"]>
7<#assign AssetCategoryLocalServiceUtil = staticUtil["com.liferay.asset.kernel.service.AssetCategoryLocalServiceUtil"]>
8<#assign UserLocalServiceUtil = staticUtil["com.liferay.portal.kernel.service.UserLocalServiceUtil"]>
9<#assign imagePath = themeDisplay.getTheme().getContextPath() + themeDisplay.getTheme().getImagesPath() />
10
11<#assign AssetCategoryServiceUtil = staticUtil["com.liferay.asset.kernel.service.AssetCategoryServiceUtil"] />
12<#assign childCategoryId = 0 />
13<#assign parentCategoryId = 0 />
14<#assign values = portletPreferences['queryValues0'] />
15<#if values?has_content>
16 <#list values as value>
17 <#if value?is_number>
18 <#assign currentCat = AssetCategoryServiceUtil.getCategory(value?number) />
19 <#assign AssetVocabularyServiceUtil = staticUtil["com.liferay.asset.kernel.service.AssetVocabularyServiceUtil"]>
20 <#assign assetVocabulary = AssetVocabularyServiceUtil.getVocabulary(currentCat.getVocabularyId()) />
21 <#if assetVocabulary.getName() == "Temi">
22 <#if currentCat.getParentCategory()??>
23 <#assign childCategoryId = currentCat.getCategoryId()/>
24 <#assign parentCategoryId = currentCat.getParentCategory().getCategoryId() />
25 <#else>
26 <#assign parentCategoryId = currentCat.getCategoryId()/>
27 </#if>
28 </#if>
29 </#if>
30 </#list>
31</#if>
32
33<div class="portlet-column portlet-column-only rt-row-full">
34 <div class="rt-container">
35 <div class="rt-wrapper">
36 <div class="rt-container">
37 <h1 class="rt-main-title rt-main-title--category">
38 <span class="rt-main-title__text-wrapper">
39 ${themeDisplay.getLayout().getName(locale)}
40 </span>
41 </h1>
42 </div>
43 </div>
44 </div>
45</div>
46
47<div class="rt-wrapper">
48 <div class="rt-container">
49 <section class="rt-section rt-section--grid rt-section--grid-3" aria-label="">
50 <#if entries?has_content>
51 <#assign countEvidenza = 0 />
52 <#list entries as curEntry>
53 <#assign countEvidenza = countEvidenza + 1 />
54 <#if countEvidenza <= 3>
55
56 <#assign assetRenderer = curEntry.getAssetRenderer() />
57 <#assign className = assetRenderer.getClassName() />
58
59 <#assign rendererURL = siteBaseURL + "/-/" + assetRenderer.getUrlTitle() />
60
61 <#if className = "com.liferay.journal.model.JournalArticle" >
62 <#assign article = assetRenderer.getArticle() />
63 <#if article?? >
64 <#assign docXml = saxReaderUtil.read(article.getContent()) />
65
66 <#assign titleText = curEntry.getTitle(locale) />
67 <#assign titleLength = titleText?length />
68
69 <#if (titleLength > 92) >
70 <#assign titleText = titleText?substring(0,92) />
71 <#assign titleText = titleText + "..." />
72 </#if>
73
74
75 <#assign temi = [] />
76 <#assign autore = "" />
77 <#assign categoryList = AssetCategoryLocalServiceUtil.getAssetEntryAssetCategories(curEntry.getEntryId()) />
78
79 <#list categoryList as category>
80 <#assign assetVocabulary = AssetVocabularyServiceUtil.getVocabulary(category.getVocabularyId()) />
81 <#if assetVocabulary.getName() == "Temi">
82 <#assign temi = temi + [category] />
83 <#elseif assetVocabulary.getName() == "5. Autori">
84 <#assign autore = category.getName() />
85 </#if>
86 </#list>
87
88 <#assign nomeAutore = "" />
89 <#if autore?? && autore != "" && autore != "redazione">
90 <#assign userAutore = UserLocalServiceUtil.getUserByScreenName(themeDisplay.getCompanyId(), autore) />
91 <#if userAutore?? && userAutore?has_content>
92 <#assign nomeAutore = userAutore.getFullName() />
93 </#if>
94 <#else>
95 <#assign nomeAutore = "Redazione" />
96 </#if>
97
98 <#assign Immagine = docXml.valueOf("//dynamic-element[@name='Immagine']/dynamic-content/text()") />
99 <#assign Descrizione = docXml.valueOf("//dynamic-element[@name='Descrizione']/dynamic-content/text()") />
100 <#assign Etichetta = docXml.valueOf("//dynamic-element[@name='EtichettaDiLancio']/dynamic-content/text()") />
101 <#assign fileUrl = "" />
102 <#assign altImg = "" />
103 <#if Immagine?has_content>
104 <#assign json = jsonFactoryUtil.createJSONObject(Immagine) />
105 <#assign nameImg = json.getString("name") />
106 <#assign altImg = json.getString("alt") />
107 <#assign fileEntryId = json.getLong("fileEntryId") />
108 <#assign uuiD = json.getString("uuid") />
109 <#assign groupId = json.getLong("groupId") />
110
111 <#if fileEntryId != 0>
112 <#assign fileEntry = DLFileEntryLocalServiceUtil.getFileEntry(fileEntryId) />
113 <#assign fileUrl = "/documents/" + fileEntry.getGroupId() + "/" + fileEntry.getFolderId() + "/" + fileEntry.getTitle() + "/" + fileEntry.getUuid() />
114 <#else>
115 <#if groupId != 0 && uuiD != "">
116 <#assign fileEntry = DLFileEntryLocalServiceUtil.getFileEntryByUuidAndGroupId(uuiD,groupId) />
117 <#if fileEntry?? >
118 <#assign fileUrl = "/documents/" + fileEntry.getGroupId() + "/" + fileEntry.getFolderId() + "/" + fileEntry.getTitle() + "/" + fileEntry.getUuid() />
119 </#if>
120 </#if>
121 </#if>
122 <#else>
123 <#assign fileUrl = imagePath + "/toscana-notizie-placeholder.png" />
124 </#if>
125
126
127 <div class="rt-box rt-box--has-image">
128 <div aria-label="${altImg?html}" class="rt-box__image" style="background-image: url('${fileUrl?html}');">
129
130 <#if Etichetta?? && Etichetta != "">
131 <div class="rt-box__category">
132 ${Etichetta?html}
133 </div>
134 </#if>
135 </div>
136
137 <div class="rt-box__text">
138 <div class="rt-box__meta">
139
140 <div class="rt-box__publication">
141 <div class="rt-box__date">${curEntry.publishDate?string["dd MMMM"]?remove_beginning("0")}</div>
142 <div class="rt-box__time">${curEntry.publishDate?string["HH:mm"]?remove_beginning("0")}</div>
143 </div>
144 <div class="rt-box__author">
145 di ${nomeAutore?html}
146 </div>
147 </div>
148
149 <div class="rt-box__title">
150 <a title="Vai alla pagina ${titleText}" aria-label="Vai alla pagina ${titleText}" href="${rendererURL}">
151 ${titleText?replace('<[^>]+>','','r')}
152 </a>
153 </div>
154
155 </div>
156
157 </div>
158
159
160 </#if>
161 </#if>
162 </#if>
163 </#list>
164 </#if>
165
166 </section>
167 </div>
168</div>
169
170<div class="rt-wrapper">
171 <div class="rt-container">
172 <section class="rt-section rt-section--grid rt-section--grid-4" aria-label="">
173 <#if entries?has_content>
174 <#assign countEvidenza = 0 />
175 <#list entries as curEntry>
176 <#assign countEvidenza = countEvidenza + 1 />
177 <#if (countEvidenza > 3)>
178
179 <#assign assetRenderer = curEntry.getAssetRenderer() />
180 <#assign className = assetRenderer.getClassName() />
181
182 <#assign rendererURL = siteBaseURL + "/-/" + assetRenderer.getUrlTitle() />
183
184 <#if className = "com.liferay.journal.model.JournalArticle" >
185 <#assign article = assetRenderer.getArticle() />
186 <#if article?? >
187 <#assign docXml = saxReaderUtil.read(article.getContent()) />
188
189 <#assign titleText = curEntry.getTitle(locale) />
190 <#assign titleLength = titleText?length />
191
192 <#if (titleLength > 92) >
193 <#assign titleText = titleText?substring(0,92) />
194 <#assign titleText = titleText + "..." />
195 </#if>
196
197
198 <#assign temi = [] />
199 <#assign autore = "" />
200 <#assign categoryList = AssetCategoryLocalServiceUtil.getAssetEntryAssetCategories(curEntry.getEntryId()) />
201
202 <#list categoryList as category>
203 <#assign assetVocabulary = AssetVocabularyServiceUtil.getVocabulary(category.getVocabularyId()) />
204 <#if assetVocabulary.getName() == "Temi">
205 <#assign temi = temi + [category] />
206 <#elseif assetVocabulary.getName() == "5. Autori">
207 <#assign autore = category.getName() />
208 </#if>
209 </#list>
210
211 <#assign nomeAutore = "" />
212 <#if autore?? && autore != "" && autore != "redazione">
213 <#assign userAutore = UserLocalServiceUtil.getUserByScreenName(themeDisplay.getCompanyId(), autore) />
214 <#if userAutore?? && userAutore?has_content>
215 <#assign nomeAutore = userAutore.getFullName() />
216 </#if>
217 <#else>
218 <#assign nomeAutore = "Redazione" />
219 </#if>
220
221 <div class="rt-box rt-box--secondary">
222 <div class="rt-box__text">
223 <div class="rt-box__publication">
224 <div class="rt-box__date">
225 ${curEntry.publishDate?string["dd MMMM"]?remove_beginning("0")}
226 </div>
227
228 <div class="rt-box__category">
229 <#assign currentCategory = 0 />
230 <#list temi as category>
231 <#if parentCategoryId != 0>
232 <#if (currentCategory?? && currentCategory != category.getCategoryId()) && (category.getCategoryId() == parentCategoryId) || (category.getParentCategory()?? && (category.getParentCategory().getCategoryId() == parentCategoryId))>
233 <#assign currentCategory = category.getCategoryId() />
234 ${category.getName()?html}
235 </#if>
236 <#else>
237 <#if (currentCategory?? && currentCategory != category.getCategoryId()) >
238 <#assign currentCategory = category.getCategoryId() />
239 ${category.getName()?html}
240 </#if>
241 </#if>
242 </#list>
243 </div>
244 </div>
245
246 <div class="rt-box__title">
247 <a title="Vai alla pagina ${titleText}" aria-label="Vai alla pagina ${titleText}" href="${rendererURL}">
248 ${titleText?replace('<[^>]+>','','r')}
249 </a>
250 </div>
251 <#if nomeAutore != "Amministratore Portale">
252 <div class="rt-box__author">
253 di ${nomeAutore?html}
254 </div>
255 </#if>
256 </div>
257 </div>
258 </#if>
259 </#if>
260 </#if>
261 </#list>
262 </#if>
263 </section>
264 </div>
265</div>
Per migliorare l'esperienza di navigazione delle pagine e di fruizione dei servizi online, questo sito utilizza cookie tecnici e analitici. Per informazioni sui cookie dei siti di Regione Toscana e su come eventualmente disabilitarli, leggi la "privacy policy". Chiudendo questo banner, scorrendo questa pagina o cliccando qualunque altro link nella pagina acconsenti all'uso dei cookie.