NEWS NEWS

Si è verificato un errore nell'elaborarazione del modello.
No signature of method getDate matches the arguments
1<#assign liferay_ui = taglibLiferayHash["/WEB-INF/tld/liferay-ui.tld"] /> 
2<#assign counter=0 /> 
3<#list entries as entry> 
4    <#assign entry = entry /> 
5    <#if counter < 6 > 
6    <#assign assetRenderer = entry.getAssetRenderer() /> 
7  
8    <#assign entryTitle = htmlUtil.escape(assetRenderer.getTitle(locale)) /> 
9    <#assign cats><@getMetadataField fieldName="categories"/></#assign> 
10    <#assign categories = cats?replace("Topic:", "") /> 
11    <#assign viewURL = assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse, entry) /> 
12  
13    <#if assetLinkBehavior != "showFullContent"> 
14        <#assign viewURL = assetRenderer.getURLViewInContext(renderRequest, renderResponse, viewURL) />  
15         
16        </#if> 
17    
18  
19     
20    <div class="asset-abstract"> 
21    <div class="lfr-meta-actions asset-actions"> 
22             
23<@getEditIcon/> 
24            			 
25	<#macro getEditIcon> 
26	 
27			<#if assetRenderer.hasEditPermission(themeDisplay.getPermissionChecker())> 
28				<#assign redirectURL = renderResponse.createRenderURL() /> 
29 
30				${redirectURL.setParameter("struts_action", "/asset_publisher/add_asset_redirect")} 
31				${redirectURL.setWindowState("pop_up")} 
32 
33				<#assign editPortletURL = assetRenderer.getURLEdit(renderRequest, renderResponse, windowStateFactory.getWindowState("pop_up"), redirectURL) /> 
34 
35				<#if validator.isNotNull(editPortletURL)> 
36					<#assign title = languageUtil.format(locale, "edit-x", htmlUtil.escape(assetRenderer.getTitle(locale))) /> 
37 
38					<@liferay_ui["icon"] 
39						image="edit" 
40						message=title 
41						url="javascript:Liferay.Util.openWindow({dialog: {width: 960}, id:'" + renderResponse.getNamespace() + "editAsset', title: '" + title + "', uri:'" + htmlUtil.escapeURL(editPortletURL.toString()) + "'});" 
42					/> 
43				</#if> 
44		    </#if> 
45		</#macro> 
46		</div> 
47         
48         
49 	<span class="data-pubblicazione">Data: 
50		<#assign dateFormat = "dd MMM yyyy" /> 
51		${dateUtil.getDate(entry.getPublishDate(),dateFormat, locale)} 
52		  </span> 
53		   
54		 <span>  	 
55    		 ${categories} 
56		</span> 
57 
58	   <h3 class="asset-title"> 
59            <a href="${viewURL}"><img alt="" src="${assetRenderer.getIconPath(renderRequest)}" />${entryTitle}</a> 
60        </h3> 
61 
62      
63   
64        <div class="asset-content"> 
65            
66  
67            <div class="asset-summary"> 
68         
69  
70                ${htmlUtil.escape(assetRenderer.getSummary(locale))} 
71                 
72                   
73                 
74            </div> 
75         </div> 
76      </div> 
77      
78  
79  
80 <#macro getMetadataField fieldName> 
81   <span> 
82		  
83		 <#if fieldName == "categories"> 
84                <@liferay_ui["asset-categories-summary"] 
85                    className=entry.getClassName() 
86                    classPK=entry.getClassPK() 
87                    portletURL=renderResponse.createRenderURL()/>  
88        </#if> 
89    </span> 
90	</#macro> 
91         
92	 
93         
94 
95 
96    </#if> 
97    <#assign counter=counter+1 /> 
98  </#list>