Si è verificato un errore nell'elaborarazione del modello.
Error on line 33, column 17 in 20155#20195#58088
entry.getAssetRenderer() is undefined.
It cannot be assigned to assetRenderer
1<#-- 
2Web content templates are used to lay out the fields defined in a web 
3content structure. 
4 
5Please use the left panel to quickly add commonly used variables. 
6Autocomplete is also available and can be invoked by typing "${". 
7--> 
8 
9 
10<style> 
11#cont-notizie ol >li p{ 
12	font-family: source-sans-pro, sans-serif; 
13    font-weight: normal; 
14    font-size: 14px; 
15    line-height: 20px; 
16
17</style> 
18 
19 
20<#assign liferay_ui = taglibLiferayHash["/WEB-INF/tld/liferay-ui.tld"] /> 
21 
22<div class="clearfix  cont-titolo-2"> 
23						<h1 class="Titoli nero f_left">News</h1> 
24</div> 
25<#assign inizioUrlCorrente> ${currentURL}</#assign> 
26<#if  inizioUrlCorrente?index_of("?") gt  0 > 
27<#assign inizioUrlCorrente> ${inizioUrlCorrente?substring(0, inizioUrlCorrente?index_of("?"))}</#assign> 
28</#if> 
29 
30<div id="cont-notizie"> 
31<ol> 
32	<#list entries as entry> 
33		<#assign assetRenderer = entry.getAssetRenderer() /> 
34 
35		<#assign viewURL = assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse, entry) /> 
36 
37    <#assign viewUrlTitle = assetRenderer.getUrlTitle()/> 
38    <#assign groupId = assetRenderer.getGroupId()/> 
39	<#assign articleId =  assetRenderer.getArticle().getArticleId() /> 
40	<#assign urlTitle  = assetRenderer.getArticle().getUrlTitle() /> 
41	<#assign link = "${inizioUrlCorrente}_det/-/journal_content/56/${groupId}/${urlTitle}"/> 
42		<#if assetLinkBehavior != "showFullContent"> 
43			<#assign viewURL = assetRenderer.getURLViewInContext(renderRequest, renderResponse, viewURL) /> 
44		</#if> 
45 
46 
47        			<div class="lfr-meta-actions asset-actions"> 
48 
49 
50        				<@getEditIcon /> 
51        			</div> 
52 
53 
54 
55      <#assign docXml = saxReaderUtil.read(entry.getAssetRenderer().getArticle().getContentByLocale(locale)) /> 
56 
57      <#assign fieldDenominazione = docXml.valueOf("//dynamic-element[@name='denominazione']/dynamic-content/text()") /> 
58	  <#assign fieldDescrizioneBreve = docXml.valueOf("//dynamic-element[@name='descrizioneBreve']/dynamic-content/text()") /> 
59	  <#assign fieldAutore = docXml.valueOf("//dynamic-element[@name='autore']/dynamic-content/text()") /> 
60	  <!--#assign fieldDataPubblicazione = docXml.valueOf("//dynamic-element[@name='dataPubblicazione']/dynamic-content/text()") /--> 
61	  <#assign dateFormat = "dd/MM/yyyy" />  
62	  <#assign dateFormatSmall = "yyyy/MM/dd" />  
63	   	<#if fieldDenominazione?trim == ""> 
64			<#assign fieldDenominazione = urlTitle /> 
65		</#if> 
66	  <li class="Titoli-news Titoli-news-home-19" > 
67		<a class="nonblock" href="${link}"> 
68			<span style="font-family: source-sans-pro, sans-serif;font-weight: 600;line-height: 21px;">${fieldDenominazione}</span> 
69		</a> 
70		 
71		 
72		<#if fieldDescrizioneBreve!=""> 
73			<p>${fieldDescrizioneBreve}</p> 
74		</#if> 
75	 
76		<#if fieldAutore!=""> 
77		<p><strong><@liferay.language key="msg.tpl.news.inserito-da" />: </strong>${fieldAutore}</p> 
78		</#if> 
79		<#attempt> 
80		<p><strong><@liferay.language key="msg.tpl.common.data-pubblicazioneUp" />: </strong> 
81				<time pubdate="pubdate" datetime="${dateUtil.getDate(entry.getPublishDate(), dateFormat, locale)}">${dateUtil.getDate(entry.getPublishDate(), dateFormat, locale)}</time> 
82		</p> 
83        <#recover> 
84        </#attempt> 
85		<div class="separator"></div> 
86	  </li> 
87 
88	</#list> 
89  </ol> 
90</div> 
91 
92 
93<#macro getEditIcon> 
94	<#if assetRenderer.hasEditPermission(themeDisplay.getPermissionChecker())> 
95		<#assign redirectURL = renderResponse.createRenderURL() /> 
96 
97		${redirectURL.setParameter("struts_action", "/asset_publisher/add_asset_redirect")} 
98		${redirectURL.setWindowState("pop_up")} 
99 
100		<#assign editPortletURL = assetRenderer.getURLEdit(renderRequest, renderResponse, windowStateFactory.getWindowState("pop_up"), redirectURL) /> 
101 
102		<#if validator.isNotNull(editPortletURL)> 
103			<#assign title = languageUtil.format(locale, "edit-x", htmlUtil.escape(assetRenderer.getTitle(locale))) /> 
104 
105			<@liferay_ui["icon"] 
106				image="edit" 
107				message=title 
108				url="javascript:Liferay.Util.openWindow({dialog: {width: 960}, id:'" + renderResponse.getNamespace() + "editAsset', title: '" + title + "', uri:'" + htmlUtil.escapeURL(editPortletURL.toString()) + "'});" 
109			/> 
110		</#if> 
111	</#if> 
112</#macro> 
113 
114 
115 
116 
117<#macro getRelatedAssets> 
118	<#if enableRelatedAssets == "true"> 
119		<@liferay_ui["asset-links"] 
120			assetEntryId=entry.getEntryId() 
121		/> 
122	</#if> 
123</#macro>