Si è verificato un errore nell'elaborarazione del modello.
No such key: getAssetEntryAssetCategories in class com.liferay.asset.kernel.service.AssetCategoryLocalServiceUtil ---- FTL stack trace ("~" means nesting-related): - Failed at: #assign categoryList = AssetCategoryL... [in template "10155#10195#12746231" at line 18, column 1] ----
1<#setting locale="it_IT">
2
3<#setting time_zone=timeZone.ID>
4
5<#assign AssetEntryLocalServiceUtil = staticUtil["com.liferay.asset.kernel.service.AssetEntryLocalServiceUtil"] />
6<#assign JournalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService")>
7<#assign DLFileEntryLocalServiceUtil = serviceLocator.findService('com.liferay.document.library.kernel.service.DLFileEntryLocalService') />
8
9<#assign journalArticleId = .vars['reserved-article-id'].data/>
10<#assign article = JournalArticleLocalService.getArticle(groupId, journalArticleId) />
11<#assign entry = AssetEntryLocalServiceUtil.fetchEntry("com.liferay.journal.model.JournalArticle", article.resourcePrimKey) />
12
13<#assign assetRenderer = entry.getAssetRenderer() />
14<#assign entryTitle = htmlUtil.escape(entry.getTitle(locale)?html) />
15<#assign className = assetRenderer.getClassName() />
16
17<#assign AssetCategoryLocalServiceUtil = staticUtil["com.liferay.asset.kernel.service.AssetCategoryLocalServiceUtil"]>
18<#assign categoryList = AssetCategoryLocalServiceUtil.getAssetEntryAssetCategories(entry.entryId) />
19
20<#assign assetEntryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryLocalService") />
21
22
23<#assign docXml = saxReaderUtil.read(article.getContent()) />
24<#assign imagePath = themeDisplay.getTheme().getContextPath() + themeDisplay.getTheme().getImagesPath() />
25
26<#assign currentArticle = JournalArticleLocalService.getArticle(groupId, .vars['reserved-article-id'].data) />
27<#assign currentArticleResourcePrimKey = currentArticle.getResourcePrimKey() />
28<#assign currentArticleAssetEntry = assetEntryLocalService.getEntry("com.liferay.journal.model.JournalArticle", currentArticleResourcePrimKey) />
29<#assign currentArticleAssetEntryId = currentArticleAssetEntry.getEntryId() />
30
31<#assign assetRenderer = currentArticleAssetEntry.getAssetRenderer() />
32<#assign entryTitle = htmlUtil.escape(currentArticleAssetEntry.getTitle(locale)?html) />
33<#assign docXml = saxReaderUtil.read(currentArticle.getContent()) />
34
35
36<header class="irm-hero irm-hero--inner-page irm-hero--event">
37 <section class="irm-hero__text">
38 <div class=" irm-container">
39 <h1 class="irm-h2">
40 ${.vars['reserved-article-title'].data}
41 </h1>
42 <div class="irm-hero__date">
43 <time><span class="irm-icon irm-icon-calendar ">
44 <svg width="22" height="22" fill="none" xmlns="http://www.w3.org/2000/svg">
45 <path d="M17 3H5a4 4 0 0 0-4 4v10a4 4 0 0 0 4 4h12a4 4 0 0 0 4-4V7a4 4 0 0 0-4-4zM1 9h20M7 1v4-4zm8 0v4-4z" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path>
46 </svg>
47 </span>${currentArticleAssetEntry.modifiedDate?string["dd.MM.yyyy"]}</time>
48 </div>
49 </div>
50
51 </section>
52 <#if ImmagineTestata?? && ImmagineTestata.getData()?? && ImmagineTestata.getData() != "">
53
54 <#assign altImage = "Immagine dell'articolo"/>
55 <#if ImmagineTestata.getAttribute("alt")?? >
56 <#assign altImage = ImmagineTestata.getAttribute("alt") />
57 </#if>
58 <img class="irm-hero__image" alt="${altImage}" src="${ImmagineTestata.getData()}" />
59 <#else>
60 <#assign defaultImage = "/documents/9336349/0/progetti-image.jpg/59bd4fd8-0642-9fa2-1a8f-66f236e7c1bb?t=1658500792712" />
61 <#assign altImage = "Immagine dell'articolo"/>
62 <img class="irm-hero__image" alt="${altImage}" src="${defaultImage}" />
63 </#if>
64
65</header>
66
67<section class="irm-container irm-padding-b-12">
68
69 <!-- griglia -->
70 <section class="irm-padding-v-4 irm-grid irm-grid--xl">
71
72 <#if Contenuto?? && Contenuto.getData() != "">
73 <!-- CONTENUTO -->
74 <section class="irm-page-content irm-padding-v-4">
75 <section class="irm-page-body">
76
77 ${Contenuto.getData()}
78
79 <#if Programma?? && Programma.getData()?? && Programma.getData() != "">
80
81 <div class="irm-padding-v-6">
82 <a href="${Programma.getData()}" class="irm-btn" download>${languageUtil.format(locale, "download-x", "Programma", false)}</a>
83 </div>
84
85 </#if>
86 </section>
87
88 </section><!-- fine contenuto -->
89
90 </#if>
91
92 <#if ImmagineArticolo?? && ImmagineArticolo.getData()?? && ImmagineArticolo.getData() != "">
93
94
95
96
97
98
99
100 <!-- colonna destra -->
101 <section class="irm-page-sidebar">
102 <!-- immagine - col -->
103 <section class="irm-page-image irm-padding-v-6">
104 <#assign altImage = "Immagine dell'articolo"/>
105 <#if ImmagineArticolo.getAttribute("alt")?? >
106 <#assign altImage = ImmagineArticolo.getAttribute("alt") />
107 </#if>
108 <img alt="${altImage}" src="${ImmagineArticolo.getData()}" />
109 </section>
110 </section><!-- end colonna -->
111
112 </#if>
113
114 </section><!-- fine griglia -->
115
116
117
118</section>