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