In evidenza
Si è verificato un errore nell'elaborarazione del modello.
Java method "com.liferay.journal.model.impl.JournalArticleImpl.getContentByLocale(String)" threw an exception when invoked on com.liferay.journal.model.impl.JournalArticleImpl object "{\"mvccVersion\": 1, \"ctCollectionId\": 0, \"uuid\": \"84bad151-8fde-2cc5-c53f-c77f8118e6c9\", \"id\": 11526732, \"resourcePrimKey\": 11513449, \"groupId\": 10194, \"companyId\": 10154, \"userId\": 181915, \"userName\": \"amadio amadio\", \"createDate\": \"Wed Apr 22 12:40:02 GMT 2026\", \"modifiedDate\": \"Tue Apr 28 10:40:45 GMT 2026\", \"externalReferenceCode\": \"11513447\", \"folderId\": 0, \"classNameId\": 0, \"classPK\": 0, \"treePath\": \"/\", \"articleId\": \"11513447\", \"version\": 1.2, \"urlTitle\": \"comunicato-stampa-del-23-aprile-2026-abusivismo-1\", \"DDMStructureId\": 14804, \"DDMTemplateKey\": \"14805\", \"defaultLanguageId\": \"it_IT\", \"layoutUuid\": \"\", \"displayDate\": \"Mon Dec 15 08:37:00 GMT 2025\", \"expirationDate\": null, \"reviewDate\": null, \"indexable\": true, \"smallImage\": false, \"smallImageId\": 0, \"smallImageSource\": 1, \"smallImageURL\": \"\", \"lastPublishDate\": null, \"status\": 0, \"statusByUserId\": 182117, \"statusByUserName\": \"gloria gloria\", \"statusDate\": \"Tue Apr 28 10:40:45 GMT 2026\"}"; see cause exception in the Java stack trace.
----
FTL stack trace ("~" means nesting-related):
- Failed at: #assign docXml = saxReaderUtil.read(e... [in template "10154#10194#1164798" at line 24, column 25]
----
1<div id="homeSliderNews" class="home-slider-news-new">
2
3 <h3><@liferay.language key="home-slider-news-new" /></h3>
4
5 <ul class="box owl-carousel owl-theme">
6
7 <#list entries as entry>
8
9 <#assign assetRenderer = entry.getAssetRenderer() />
10
11 <#assign viewUrlTitle = assetRenderer.getUrlTitle()/>
12
13 <#assign groupId = assetRenderer.getGroupId()/>
14
15 <#assign myPortletId = portalUtil.getPortletId(renderRequest) />
16
17 <#-- <#assign viewURL = assetRenderer.getURLViewInContext(renderRequest, renderResponse, "") /> -->
18
19 <#-- bisogna conoscere l'id della pagina destinazione e il portlet id dell'asset publisher in essa contenuto -->
20 <#assign viewURL='/web/consob/dettaglio-news/-/asset_publisher/hZ774IBO5XPe/content/${viewUrlTitle}/${groupId}' />
21
22 <li>
23
24 <#assign docXml = saxReaderUtil.read(entry.getAssetRenderer().getArticle().getContentByLocale(locale)) />
25 <#assign fieldTitolo = docXml.valueOf("//dynamic-element[@name='titolo']/dynamic-content/text()") />
26 <#assign fieldContenuto = docXml.valueOf("//dynamic-element[@name='contenuto']/dynamic-content/text()") />
27 <#assign listaAllegati = docXml.selectNodes("//dynamic-element[@name='allegato']") />
28 <#assign listaLink = docXml.selectNodes("//dynamic-element[@name='etichettaLink']") />
29
30 <div class="lfr-meta-actions asset-actions">
31
32 <@getEditIcon />
33
34 </div>
35
36 <a href="${viewURL}" tabindex="" title="${fieldTitolo}">
37
38 <span class="title">${fieldTitolo}</span>
39
40 <span class="content">${fieldContenuto}</span>
41
42 </a>
43
44 <#assign link="" />
45 <#assign target="" />
46
47 <div class="cbnLink">
48
49 <#list listaLink as curEtichetta>
50
51 <#assign etichetta = curEtichetta.valueOf("./dynamic-content/text()")>
52
53 <#list curEtichetta.selectNodes("//dynamic-element[@name='indirizzoLink']") as itemData>
54
55 <#if ( itemData?has_content) >
56
57 <#assign link=itemData.valueOf("./dynamic-content/text()") />
58
59 <#if (link?starts_with("http")) >
60
61 <#assign target="target='_blank'"/>
62
63 </#if>
64
65 </#if>
66
67 <#break>
68
69 </#list>
70
71 <#if etichetta?? && etichetta?has_content && link!="">
72
73 <a href="${link}" ${target} > ${etichetta} </a>
74
75 </#if>
76
77 <#break>
78
79 </#list>
80
81 <#if link=="" >
82
83 <#list listaAllegati as cur_allegato>
84
85 <#assign allegato= cur_allegato.valueOf("./dynamic-content/text()")>
86
87 <#if !journalArticleUtil.isJSONObjectWithKeys(allegato)>
88 <#continue>
89 </#if>
90
91 <a href="${allegato}" target="_blank" >
92
93 <#assign sappo= allegato?substring(0, allegato?last_index_of("/"))>
94
95 ${httpUtil.decodeURL(sappo?substring(sappo?last_index_of("/")+1))}
96
97 </a>
98
99 <#break>
100
101 </#list>
102
103 </#if>
104
105 </div>
106
107 </li>
108
109 </#list>
110
111 </ul>
112
113</div>
114
115
116<#macro getEditIcon>
117
118 <#if assetRenderer.hasEditPermission(themeDisplay.getPermissionChecker())>
119
120 <#assign redirectURL = renderResponse.createRenderURL() />
121
122 ${redirectURL.setParameter("struts_action", "/asset_publisher/add_asset_redirect")}
123 ${redirectURL.setWindowState("pop_up")}
124
125 <#assign editPortletURL = assetRenderer.getURLEdit(renderRequest, renderResponse, windowStateFactory.getWindowState("pop_up"), redirectURL) />
126
127 <#if validator.isNotNull(editPortletURL)>
128
129 <#assign title = languageUtil.format(locale, "edit-x", htmlUtil.escape(assetRenderer.getTitle(locale))) />
130
131 <@liferay_ui["icon"] image="edit" message=title
132 url="javascript:Liferay.Util.openWindow({dialog: {width: 1060}, id:'" + renderResponse.getNamespace() + "editAsset', title: '" + title + "', uri:'" + htmlUtil.escapeURL(editPortletURL.toString()) + "'});"
133 />
134
135 </#if>
136
137 </#if>
138
139</#macro>
140
141<#macro getPrintIcon>
142
143 <#if enablePrint == "true" >
144
145 <#assign printURL = renderResponse.createRenderURL() />
146
147 ${printURL.setParameter("struts_action", "/asset_publisher/view_content")}
148 ${printURL.setParameter("assetEntryId", entry.getEntryId()?string)}
149 ${printURL.setParameter("viewMode", "print")}
150 ${printURL.setParameter("type", entry.getAssetRendererFactory().getType())}
151
152 <#if (validator.isNotNull(assetRenderer.getUrlTitle()))>
153
154 <#if (assetRenderer.getGroupId() != themeDisplay.getScopeGroupId())>
155
156 ${printURL.setParameter("groupId", assetRenderer.getGroupId()?string)}
157 </#if>
158
159 ${printURL.setParameter("urlTitle", assetRenderer.getUrlTitle())}
160
161 </#if>
162
163 ${printURL.setWindowState("pop_up")}
164
165 <@liferay_ui["icon"] image="print" message="print"
166 url="javascript:Liferay.Util.openWindow({dialog: {width: 960}, id:'" + renderResponse.getNamespace() + "printAsset', title: '" + languageUtil.format(locale, "print-x-x", ["aui-helper-hidden-accessible", htmlUtil.escape(assetRenderer.getTitle(locale))]) + "', uri: '" + htmlUtil.escapeURL(printURL.toString()) + "'});"
167 />
168
169 </#if>
170
171</#macro>
172
173<script>
174
175 $(document).ready(function() {
176
177 if ($('#homeSliderNews ul').length > 0) {
178
179 $('#homeSliderNews ul').owlCarousel({
180 dots: false,
181 items: 1,
182 responsive: {
183 0: {items: 1},
184 479: {items: 1},
185 768: {items: 1},
186 979: {items: 1},
187 1199: {items: 1}
188 },
189 loop: true,
190 nav: true,
191 navText: ['', ''],
192 scrollPerPage: true
193 });
194 }
195 });
196
197</script>


