Salute - 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@4d6a218f"; 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 = imagePath + "/toscana-notizie-placeholder.png"/>
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 <#attempt>
117 <#assign fileEntry = DLFileEntryLocalServiceUtil.getFileEntryByUuidAndGroupId(uuiD,groupId) />
118 <#if fileEntry?? >
119 <#assign fileUrl = "/documents/" + fileEntry.getGroupId() + "/" + fileEntry.getFolderId() + "/" + fileEntry.getTitle() + "/" + fileEntry.getUuid() />
120 </#if>
121 <#recover>
122 </#attempt>
123 </#if>
124 </#if>
125 </#if>
126
127
128 <div class="rt-box rt-box--has-image">
129 <div aria-label="${altImg?html}" class="rt-box__image" style="background-image: url('${fileUrl?html}');">
130
131 <#if Etichetta?? && Etichetta != "">
132 <div class="rt-box__category">
133 ${Etichetta?html}
134 </div>
135 </#if>
136 </div>
137
138 <div class="rt-box__text">
139 <div class="rt-box__meta">
140
141 <div class="rt-box__publication">
142 <div class="rt-box__date">${curEntry.publishDate?string["dd MMMM"]?remove_beginning("0")}</div>
143 <div class="rt-box__time">${curEntry.publishDate?string["HH:mm"]?remove_beginning("0")}</div>
144 </div>
145 <div class="rt-box__author">
146 di ${nomeAutore?html}
147 </div>
148 </div>
149
150 <div class="rt-box__title">
151 <a title="Vai alla pagina ${titleText}" aria-label="Vai alla pagina ${titleText}" href="${rendererURL}">
152 ${titleText?replace('<[^>]+>','','r')}
153 </a>
154 </div>
155
156 </div>
157
158 </div>
159
160
161 </#if>
162 </#if>
163 </#if>
164 </#list>
165 </#if>
166
167 </section>
168 </div>
169</div>
170
171<div class="rt-wrapper">
172 <div class="rt-container">
173 <section class="rt-section rt-section--grid rt-section--grid-4" aria-label="">
174 <#if entries?has_content>
175 <#assign countEvidenza = 0 />
176 <#list entries as curEntry>
177 <#assign countEvidenza = countEvidenza + 1 />
178 <#if (countEvidenza > 3)>
179
180 <#assign assetRenderer = curEntry.getAssetRenderer() />
181 <#assign className = assetRenderer.getClassName() />
182
183 <#assign rendererURL = siteBaseURL + "/-/" + assetRenderer.getUrlTitle() />
184
185 <#if className = "com.liferay.journal.model.JournalArticle" >
186 <#assign article = assetRenderer.getArticle() />
187 <#if article?? >
188 <#assign docXml = saxReaderUtil.read(article.getContent()) />
189
190 <#assign titleText = curEntry.getTitle(locale) />
191 <#assign titleLength = titleText?length />
192
193 <#if (titleLength > 92) >
194 <#assign titleText = titleText?substring(0,92) />
195 <#assign titleText = titleText + "..." />
196 </#if>
197
198
199 <#assign temi = [] />
200 <#assign autore = "" />
201 <#assign categoryList = AssetCategoryLocalServiceUtil.getAssetEntryAssetCategories(curEntry.getEntryId()) />
202
203 <#list categoryList as category>
204 <#assign assetVocabulary = AssetVocabularyServiceUtil.getVocabulary(category.getVocabularyId()) />
205 <#if assetVocabulary.getName() == "Temi">
206 <#assign temi = temi + [category] />
207 <#elseif assetVocabulary.getName() == "5. Autori">
208 <#assign autore = category.getName() />
209 </#if>
210 </#list>
211
212 <#assign nomeAutore = "" />
213 <#if autore?? && autore != "" && autore != "redazione">
214 <#attempt>
215 <#assign userAutore = UserLocalServiceUtil.getUserByScreenName(themeDisplay.getCompanyId(), autore) />
216 <#if userAutore?? && userAutore?has_content>
217 <#assign nomeAutore = userAutore.getFullName() />
218 </#if>
219 <#recover>
220 <#assign nomeAutore = "Redazione" />
221 </#recover>
222 <#else>
223 <#assign nomeAutore = "Redazione" />
224 </#if>
225
226 <div class="rt-box rt-box--secondary">
227 <div class="rt-box__text">
228 <div class="rt-box__publication">
229 <div class="rt-box__date">
230 ${curEntry.publishDate?string["dd MMMM"]?remove_beginning("0")}
231 </div>
232
233 <div class="rt-box__category">
234 <#assign currentCategory = 0 />
235 <#list temi as category>
236 <#if parentCategoryId != 0>
237 <#if (currentCategory?? && currentCategory != category.getCategoryId()) && (category.getCategoryId() == parentCategoryId) || (category.getParentCategory()?? && (category.getParentCategory().getCategoryId() == parentCategoryId))>
238 <#assign currentCategory = category.getCategoryId() />
239 ${category.getName()?html}
240 </#if>
241 <#else>
242 <#if (currentCategory?? && currentCategory != category.getCategoryId()) >
243 <#assign currentCategory = category.getCategoryId() />
244 ${category.getName()?html}
245 </#if>
246 </#if>
247 </#list>
248 </div>
249 </div>
250
251 <div class="rt-box__title">
252 <a title="Vai alla pagina ${titleText}" aria-label="Vai alla pagina ${titleText}" href="${rendererURL}">
253 ${titleText?replace('<[^>]+>','','r')}
254 </a>
255 </div>
256 <#if nomeAutore != "Amministratore Portale">
257 <div class="rt-box__author">
258 di ${nomeAutore?html}
259 </div>
260 </#if>
261 </div>
262 </div>
263 </#if>
264 </#if>
265 </#if>
266 </#list>
267 </#if>
268 </section>
269 </div>
270</div>
—
19 Elementi per Pagina