Viaggio sul confine 'difficile', le foto - Toscana Notizie
Si è verificato un errore nell'elaborarazione del modello.
Java method "static com.liferay.document.library.kernel.service.DLFolderLocalServiceUtil.getFolder(long, long, String)" threw an exception; see cause exception in the Java stack trace. ---- FTL stack trace ("~" means nesting-related): - Failed at: #assign imageFolderId = DLFolderLocal... [in template "10154#10192#12216572" at line 240, column 37] ----
1<#setting locale="it_IT">
2
3<#assign hasCookie >
4 <@rt.checkCookieAcceptance siteId=themeDisplay.getScopeGroupId() cookieToCheck="third-party" />
5</#assign>
6
7<#assign AssetEntryLocalServiceUtil = staticUtil["com.liferay.asset.kernel.service.AssetEntryLocalServiceUtil"] />
8<#assign assetLinkLocalService = serviceLocator.findService("com.liferay.asset.link.service.AssetLinkLocalService") />
9
10<#assign JournalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService")>
11<#assign journalArticleId = .vars['reserved-article-id'].data/>
12
13<#assign article = JournalArticleLocalService.getArticle(groupId, journalArticleId) />
14<#assign entry = AssetEntryLocalServiceUtil.fetchEntry("com.liferay.journal.model.JournalArticle", article.resourcePrimKey) />
15
16<#assign AssetCategoryLocalServiceUtil = staticUtil["com.liferay.asset.kernel.service.AssetCategoryLocalServiceUtil"]>
17<#-- <#assign categoryList = AssetCategoryLocalServiceUtil.getAssetEntryAssetCategories(entry.entryId) /> -->
18
19<#assign categoryList = entry.getCategories() />
20
21<#assign UserLocalServiceUtil = staticUtil["com.liferay.portal.kernel.service.UserLocalServiceUtil"]>
22<#assign DLFileEntryLocalServiceUtil = serviceLocator.findService('com.liferay.document.library.kernel.service.DLFileEntryLocalService') />
23<#assign GroupLocalServiceUtil = staticUtil["com.liferay.portal.kernel.service.GroupLocalServiceUtil"]>
24<#assign DLFolderLocalServiceUtil = staticUtil["com.liferay.document.library.kernel.service.DLFolderLocalServiceUtil"]>
25<#assign DLAppLocalServiceUtil = staticUtil["com.liferay.document.library.kernel.service.DLAppLocalServiceUtil"]>
26
27<#assign currentArticle = JournalArticleLocalService.getArticle(groupId, .vars['reserved-article-id'].data) />
28<#assign currentArticleResourcePrimKey = currentArticle.getResourcePrimKey() />
29<#assign currentArticleAssetEntry = AssetEntryLocalServiceUtil.getEntry("com.liferay.journal.model.JournalArticle", currentArticleResourcePrimKey) />
30<#assign currentArticleAssetEntryId = currentArticleAssetEntry.getEntryId() />
31
32<#assign siteBaseURL = themeDisplay.getPortalURL() + themeDisplay.getPathFriendlyURLPublic() + themeDisplay.getLayout().getGroup().getFriendlyURL() />
33<#assign imagePath = themeDisplay.getTheme().getContextPath() + themeDisplay.getTheme().getImagesPath() />
34<#assign jsPath = themeDisplay.getTheme().getContextPath() + themeDisplay.getTheme().getJavaScriptPath() + "/" />
35
36<#assign Autori = [] />
37<#assign temi = [] />
38<#assign Provincia = [] />
39
40<#assign currentCategory = 0 />
41
42<#list categoryList as category>
43 <#assign AssetVocabularyServiceUtil = staticUtil["com.liferay.asset.kernel.service.AssetVocabularyServiceUtil"]>
44 <#assign assetVocabulary = AssetVocabularyServiceUtil.getVocabulary(category.getVocabularyId()) />
45 <#if assetVocabulary.getName() == "Temi">
46
47 <#if category.getParentCategory()??>
48 <#assign childCategory = category.getName()/>
49 <#else>
50 <#if (currentCategory?? && currentCategory != category.getCategoryId()) >
51 <#assign currentCategory = category.getCategoryId() />
52 <#assign parentCategory = category.getName()/>
53 <#assign temi = temi + [parentCategory] />
54 </#if>
55 </#if>
56
57 <#elseif assetVocabulary.getName() == "5. Autori">
58 <#assign Autori = Autori + [category.getName()] />
59 <#elseif assetVocabulary.getName() == "Provincia">
60 <#assign Provincia = Provincia + [category.getName()] />
61 </#if>
62</#list>
63
64<#list categoryList as category>
65 <#if category.getParentCategory()??>
66 <#assign childCategory = category.getName()/>
67 <#else>
68 <#assign parentCategory = category.getName()/>
69 </#if>
70</#list>
71
72<link rel="stylesheet" href="${jsPath}lightbox2/dist/css/lightbox.min.css">
73<link rel="stylesheet" type="text/css" href="${jsPath}slick/slick.css"/>
74<link rel="stylesheet" type="text/css" href="${jsPath}slick/slick-theme.css"/>
75
76<style>
77.header-title{
78 display:none;
79}
80.header-back-to{
81 display:none;
82}
83
84.hide-content{
85 visibility:hidden;
86 height : 0;
87 padding: 0px !important;
88 overflow: hidden;
89}
90
91.content_para{
92 float:none !important;
93}
94
95.hide-content img{
96 display:none;
97}
98</style>
99
100<#assign classColumnLeft = "12" />
101
102<#assign currentArticleRelatedLinks = assetLinkLocalService.getDirectLinks(currentArticleAssetEntryId) />
103
104<#if (currentArticleRelatedLinks?? && currentArticleRelatedLinks?has_content) >
105 <#assign classColumnLeft = "8" />
106</#if>
107
108<section class="container rt-container" id="content">
109 <div class="row">
110 <!-- 1 -->
111 <div class="col-md-12 portlet-column portlet-column-only" id="column-1">
112 <!-- Subheader news -->
113 <section class="rt-subheader rt-subheader--news">
114 <div class="rt-subheader__top">
115 <div class="rt-subheader__category-wrapper">
116 <#list temi as category>
117 <div class="rt-subheader__category">
118 ${category}
119 </div>
120 </#list>
121 </div>
122
123 <div class="rt-subheader__publication">
124 <#assign nomeAutore = "" />
125 <#if Autori?? && (Autori?size > 0)>
126 <#if Autori[0]?? && Autori[0] != "" && Autori[0] != "redazione">
127 <#assign userAutore = UserLocalServiceUtil.getUserByScreenName(themeDisplay.getCompanyId(), Autori[0]) />
128 <#if userAutore?? && userAutore?has_content>
129 <#assign nomeAutore = userAutore.getFullName() />
130 </#if>
131 <#else>
132 <#assign nomeAutore = "Redazione" />
133 </#if>
134 </#if>
135 <#if nomeAutore?? && nomeAutore != "">
136 <div class="rt-subheader__author">
137 <a title="Vai alla pagina dell'autore ${nomeAutore?html}" aria-label="Vai alla pagina dell'autore ${nomeAutore?html}" href="/autori/${nomeAutore?html}">
138 di ${nomeAutore?html}
139 </a>
140 </div>
141 </#if>
142 <#list Provincia as location>
143 <div class="rt-news-location">
144 <i aria-hidden="true" class="fas fa-map-marker-alt"></i> ${location}
145 </div>
146 </#list>
147
148 <#assign publishDate = .vars['reserved-article-display-date'].data />
149 <#assign publishDate = publishDate?datetime("EEE, d MMM yyyy HH:mm:ss Z")>
150 <#assign dateFormatDayMonth = "dd MMMM">
151 <#assign dateFormatHours = "HH:mm">
152 <div class="rt-subheader__date">${publishDate?string(dateFormatDayMonth)?remove_beginning("0")}</div>
153 <div class="rt-subheader__time">${publishDate?string(dateFormatHours)?remove_beginning("0")}</div>
154 </div>
155 </div>
156
157 <div class="rt-subheader__wrapper">
158 <div class="rt-subheader__title-wrapper">
159 <h1 class="rt-subheader__title">
160 ${.vars['reserved-article-title'].data}
161 </h1>
162 <#assign subtitle = .vars['reserved-article-description'].data />
163 <#if subtitle?? && subtitle != "">
164 <div class="rt-subheader__subtitle">
165 ${subtitle}
166 </div>
167 </#if>
168 </div>
169 </div>
170
171 </section>
172 </div>
173 </div>
174 <div class="row has-sidebar">
175
176 <div class="col-md-12 col-lg-${classColumnLeft} portlet-column portlet-column-first">
177
178 <#if (Testo?? && Testo.getData() != "") || (testo?? && testo.getData() != "") >
179 <div class="rt-page__content rt-page-content--left">
180 <div class="rt-page__content-text">
181 <#if Immagine?? && Immagine.getData()?? && Immagine.getData() != "">
182 <figure>
183 <#if (Immagine.getAttribute("alt")?? || Immagine.getAttribute("fileEntryId")??)>
184 <img alt="${Immagine.getAttribute("alt")}"
185 data-fileentryid="${Immagine.getAttribute("fileEntryId")}"
186 src="${Immagine.getData()}" />
187 <#else>
188 <img alt="${.vars['reserved-article-title'].data}"
189 src="${Immagine.getData()}" />
190 </#if>
191 <#if Descrizione?? && Descrizione.getData() != "">
192 <figcaption>
193 ${Descrizione.getData()}
194 </figcaption>
195 </#if>
196 </figure>
197 </#if>
198 <p>
199 <#if Testo??>
200 <@rt.pruneExternalContent html=Testo.getData() acceptedCookie=hasCookie?trim?boolean />
201 </#if>
202 <#if testo??>
203 <@rt.pruneExternalContent html=testo.getData() acceptedCookie=hasCookie?trim?boolean />
204 </#if>
205 </p>
206 </div>
207 </div>
208 </#if>
209
210 <#assign docXml = saxReaderUtil.read(currentArticle.getContent()) />
211 <#assign FolderPath = docXml.valueOf("//dynamic-element[@name='folder_path']/dynamic-content/text()") />
212
213 <#if FolderPath?? && FolderPath != "">
214
215 <#assign fileUrl = "" />
216 <#assign altImg = "" />
217
218 <#assign FolderPath = FolderPath?replace("%20", " ") />
219 <#assign isDocRoot = "false" />
220 <#assign imageGroupId = -1 />
221 <#assign imageFolderId = -1 />
222
223 <#assign folderPaths = FolderPath?split("/") />
224 <#list folderPaths as xPath>
225
226 <#if xPath != "/" && xPath != "">
227 <#if isDocRoot == "false">
228 <#if xPath == "documents">
229 <#assign isDocRoot = "true" />
230 </#if>
231 <#else>
232 <#if imageGroupId == -1>
233 <#assign tempXpath = "/" + xPath />
234 <#assign targetGroup = GroupLocalServiceUtil.fetchFriendlyURLGroup(themeDisplay.getCompanyId(), tempXpath) />
235 <#if targetGroup?? >
236 <#assign imageGroupId = targetGroup.getGroupId() />
237 <#assign imageFolderId = 0 />
238 </#if>
239 <#else>
240 <#assign imageFolderId = DLFolderLocalServiceUtil.getFolder(imageGroupId , imageFolderId, xPath).getFolderId() />
241 </#if>
242
243 </#if>
244 </#if>
245 </#list>
246
247 <#if (imageGroupId != -1 && imageFolderId != -1)>
248 <#assign fileEntriesFolder = DLFileEntryLocalServiceUtil.getFileEntries(imageGroupId,imageFolderId) />
249 <#if fileEntriesFolder?? && (fileEntriesFolder?size > 0 ) >
250
251 <#assign nowTimeStamp = .now?long />
252 <div class="rt-page__content">
253 <div class="rt-gallery">
254 <ul class="rt-gallery__list">
255 <#assign sortedFileEntry = [] />
256 <#setting date_format="dd-MM-yyyy">
257
258 <#list fileEntriesFolder as fileEntry>
259 <#if fileEntry??>
260 <#assign imgObj = {"order":fileEntry.getModifiedDate()?date, "obj":fileEntry} />
261 <#assign sortedFileEntry = sortedFileEntry + [imgObj] />
262 </#if>
263 </#list>
264 <#list sortedFileEntry?sort_by("order")?reverse as cur_obj>
265 <#assign fileEntry = cur_obj.obj />
266 <#if fileEntry??>
267 <#if !fileEntry.isInTrash()>
268 <#assign titleImg = fileEntry.getTitle()?html />
269 <#if fileEntry.getDescription()?? && fileEntry.getDescription() != "">
270 <#assign titleImg = fileEntry.getDescription()?html />
271 </#if>
272
273 <#assign fileUrl = "/documents/" + fileEntry.getGroupId() + "/" + fileEntry.getFolderId() + "/" + fileEntry.getTitle() + "/" + fileEntry.getUuid() />
274 <li class="rt-gallery__item">
275 <a title="${titleImg}" data-lightbox="galleria-${nowTimeStamp}" href="${fileUrl?html}">
276 <img alt="${titleImg}" src="${fileUrl?html}">
277 </a>
278 </li>
279 </#if>
280 </#if>
281 </#list>
282 </ul>
283 </div>
284 </div>
285 </#if>
286 </#if>
287 </#if>
288
289 <#if temi?? && (temi?size > 0) >
290 <div class="rt-page__content">
291 <div class="rt-news-tags">
292 <div id="news-tags-label" class="rt-news-tags__label">Categorie:</div>
293 <ul aria-labelledby="news-tags-label" class="rt-news-tags__list">
294 <#list temi as category>
295 <li class="rt-news-tags__item">
296 <a title="${category}" aria-label="${category}" href="/${category}">${category}</a>
297 </li>
298 </#list>
299 </ul>
300 </div>
301 </div>
302 </#if>
303
304 </div>
305
306 <div class="col-md-12 col-lg-4 portlet-column portlet-column-last" id="column-3">
307
308 <#assign currentArticleRelatedLinks = assetLinkLocalService.getDirectLinks(currentArticleAssetEntryId) />
309 <#assign hasAllegato = "false" />
310 <#assign hasLink = "false" />
311 <#if currentArticleRelatedLinks?? && currentArticleRelatedLinks?has_content>
312 <#list currentArticleRelatedLinks as related_entry>
313 <#assign relatedAssetEntryId = related_entry.getEntryId2() />
314 <#assign relatedAssetEntry = AssetEntryLocalServiceUtil.getEntry(relatedAssetEntryId) />
315 <#assign relatedAssetEntryPrimKey = relatedAssetEntry.getClassPK() />
316
317 <#if relatedAssetEntry.getClassName() == 'com.liferay.document.library.kernel.model.DLFileEntry' >
318 <#assign hasAllegato = "true" />
319 <#elseif relatedAssetEntry.getClassName() == 'com.liferay.journal.model.JournalArticle' >
320 <#assign hasLink = "true" />
321 </#if>
322 </#list>
323 </#if>
324
325 <#if (hasLink == "true") >
326 <div class="rt-sidebar-content">
327 <section class="rt-section rt-section--box rt-section--box-row rt-section--related rt-section--sidebar" aria-label="">
328 <div class="rt-section-title-wrapper">
329 <h3 class="rt-section-title">Notizie collegate</h3>
330 </div>
331 <div class="rt-section__wrapper">
332 <#list currentArticleRelatedLinks as related_entry>
333 <#assign relatedAssetEntryId = related_entry.getEntryId2() />
334 <#assign relatedAssetEntry = AssetEntryLocalServiceUtil.getEntry(relatedAssetEntryId) />
335 <#assign relatedAssetEntryPrimKey = relatedAssetEntry.getClassPK() />
336
337 <#if relatedAssetEntry.getClassName() == 'com.liferay.journal.model.JournalArticle' >
338 <#assign relatedArticle = JournalArticleLocalService.getLatestArticle(relatedAssetEntryPrimKey) />
339 <#if relatedArticle?? && relatedArticle != "">
340
341 <#assign assetRendererRelated = relatedAssetEntry.getAssetRenderer() />
342 <#assign rendererURLRelated = siteBaseURL + "/-/" + assetRendererRelated.getUrlTitle() />
343
344 <#assign docXml = saxReaderUtil.read(relatedArticle.getContent()) />
345
346 <#assign Immagine = docXml.valueOf("//dynamic-element[@name='Immagine']/dynamic-content/text()") />
347
348 <#assign fileUrl = "" />
349 <#assign altImg = "" />
350 <#if Immagine?has_content>
351 <#assign json = jsonFactoryUtil.createJSONObject(Immagine) />
352 <#assign nameImg = json.getString("name") />
353 <#assign altImg = json.getString("alt") />
354 <#assign fileEntryId = json.getLong("fileEntryId") />
355 <#assign uuiD = json.getString("uuid") />
356 <#assign groupId = json.getLong("groupId") />
357
358 <#if fileEntryId != 0>
359 <#assign fileEntry = DLFileEntryLocalServiceUtil.getFileEntry(fileEntryId) />
360 <#assign fileUrl = "/documents/" + fileEntry.getGroupId() + "/" + fileEntry.getFolderId() + "/" + fileEntry.getTitle() + "/" + fileEntry.getUuid() />
361 <#else>
362 <#if groupId != 0 && uuiD != "">
363 <#assign fileEntry = DLFileEntryLocalServiceUtil.getFileEntryByUuidAndGroupId(uuiD,groupId) />
364 <#if fileEntry?? >
365 <#assign fileUrl = "/documents/" + fileEntry.getGroupId() + "/" + fileEntry.getFolderId() + "/" + fileEntry.getTitle() + "/" + fileEntry.getUuid() />
366 </#if>
367 </#if>
368 </#if>
369 <#else>
370 <#assign fileUrl = imagePath + "/toscana-notizie-placeholder.png" />
371 </#if>
372
373
374 <div class="rt-box rt-box--has-image rt-box--has-image-small">
375 <div class="rt-box__image">
376 <img alt="Immagine ${relatedAssetEntry.getTitle(locale)?html}" src="${fileUrl?html}">
377
378 </div>
379
380 <div class="rt-box__text">
381 <div class="rt-box__publication">
382 <div class="rt-box__date">${relatedAssetEntry.publishDate?string["dd MMMM"]?remove_beginning("0")}</div>
383 <div class="rt-box__time">${relatedAssetEntry.publishDate?string["HH:mm"]?remove_beginning("0")}</div>
384 </div>
385
386 <div class="rt-box__title">
387 <a title="Vai alla pagina ${relatedAssetEntry.getTitle(locale)?html}" aria-label="Vai alla pagina ${relatedAssetEntry.getTitle(locale)?html}" href="${rendererURLRelated?html}">
388 ${relatedAssetEntry.getTitle(locale)?html}
389 </a>
390 </div>
391 </div>
392 </div>
393
394 </#if>
395 </#if>
396 </#list>
397 </div>
398 </section>
399 </div>
400 </#if>
401
402 </div>
403 </div>
404</section>
405
406<script src="${jsPath}lightbox2/dist/js/lightbox.min.js"></script>
407<script src="${jsPath}flexslider/jquery.flexslider-min.js"></script>
basovizza
fiume
foibe
confine orientale 2020
confine orientale
confine 2020
trieste
gonars
risiera di san sabba
sacrario redipuglia
magazzino 18