Gallerie Fotografiche - 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#25825836" at line 78, 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<#assign GroupLocalServiceUtil = staticUtil["com.liferay.portal.kernel.service.GroupLocalServiceUtil"]>
11<#assign DLFolderLocalServiceUtil = staticUtil["com.liferay.document.library.kernel.service.DLFolderLocalServiceUtil"]>
12<#assign DLAppLocalServiceUtil = staticUtil["com.liferay.document.library.kernel.service.DLAppLocalServiceUtil"]>
13
14<div class="portlet-column portlet-column-only rt-row-full">
15 <div class="rt-container">
16 <div class="rt-wrapper">
17 <div class="rt-container">
18 <h1 class="rt-main-title rt-main-title--category">
19 <span class="rt-main-title__text-wrapper">
20 ${themeDisplay.getLayout().getName(locale)}
21 </span>
22 </h1>
23 </div>
24 </div>
25 </div>
26</div>
27<div class="rt-container">
28<section class="rt-section rt-section--grid rt-section--grid-3" aria-label="">
29<div class="rt-section__wrapper">
30 <#if entries?has_content>
31 <#list entries as curEntry>
32 <#assign assetRenderer = curEntry.getAssetRenderer() />
33 <#assign className = assetRenderer.getClassName() />
34
35 <#assign rendererURL = siteBaseURL + "/-/" + assetRenderer.getUrlTitle() />
36
37 <#if className = "com.liferay.journal.model.JournalArticle" >
38 <#assign article = assetRenderer.getArticle() />
39 <#if article?? >
40 <#assign docXml = saxReaderUtil.read(article.getContent()) />
41
42 <#assign titleText = curEntry.getTitle(locale) />
43 <#assign titleLength = titleText?length />
44
45 <#if (titleLength > 92) >
46 <#assign titleText = titleText?substring(0,92) />
47 <#assign titleText = titleText + "..." />
48 </#if>
49
50 <#assign fileUrl = "" />
51 <#assign altImg = "" />
52
53 <#assign FolderPath = docXml.valueOf("//dynamic-element[@name='folder_path']/dynamic-content/text()") />
54 <#if FolderPath?? && FolderPath != "">
55
56 <#assign FolderPath = FolderPath?replace("%20", " ") />
57 <#assign isDocRoot = "false" />
58 <#assign imageGroupId = -1 />
59 <#assign imageFolderId = -1 />
60
61 <#assign folderPaths = FolderPath?split("/") />
62 <#list folderPaths as xPath>
63
64 <#if xPath != "/" && xPath != "">
65 <#if isDocRoot == "false">
66 <#if xPath == "documents">
67 <#assign isDocRoot = "true" />
68 </#if>
69 <#else>
70 <#if imageGroupId == -1>
71 <#assign tempXpath = "/" + xPath />
72 <#assign targetGroup = GroupLocalServiceUtil.fetchFriendlyURLGroup(themeDisplay.getCompanyId(), tempXpath) />
73 <#if targetGroup?? >
74 <#assign imageGroupId = targetGroup.getGroupId() />
75 <#assign imageFolderId = 0 />
76 </#if>
77 <#else>
78 <#assign imageFolderId = DLFolderLocalServiceUtil.getFolder(imageGroupId , imageFolderId, xPath).getFolderId() />
79 </#if>
80
81 </#if>
82 </#if>
83 </#list>
84
85 <#if (imageGroupId != -1 && imageFolderId != -1)>
86 <#assign fileEntriesFolder = DLFileEntryLocalServiceUtil.getFileEntries(imageGroupId,imageFolderId) />
87 <#if fileEntriesFolder?? && (fileEntriesFolder?size > 0 ) >
88 <#assign fileEntry = fileEntriesFolder[1] />
89 <#if fileEntry??>
90 <#assign fileUrl = "/documents/" + fileEntry.getGroupId() + "/" + fileEntry.getFolderId() + "/" + fileEntry.getTitle() + "/" + fileEntry.getUuid() />
91 </#if>
92 </#if>
93 </#if>
94
95 <#else>
96 <#assign fileUrl = imagePath + "/toscana-notizie-placeholder.png" />
97 </#if>
98 <div class="rt-box rt-box--has-image rt-box--gallery">
99 <a href="${rendererURL?html}" aria-label="Immagine di ${titleText?html}" class="rt-box__image" style="background-image: url('${fileUrl?html}');">
100 </a>
101
102 <div class="rt-box__text">
103 <div class="rt-box__title">
104 <a title="Vai alla pagina ${titleText?html}" aria-label="Vai alla pagina ${titleText?html}" href="${rendererURL?html}">
105 ${titleText?html}
106 </a>
107 </div>
108 </div>
109 </div>
110 </#if>
111 </#if>
112 </#list>
113 </#if>
114</div>
115</section>
116</div>