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