Questo sito utilizza cookie tecnici e consente l'invio di cookie di "terze parti" al fine di effettuare misure di traffico per la valutazione delle prestazioni del sito. Per saperne di più, clicca sull'apposito bottone "Maggiori dettagli", che aprirà in modalità pop up l'informativa estesa, dove è possibile avere informazioni per negare il consenso all'installazione di qualunque cookie. Cliccando il bottone OK o cliccando su una qualsiasi altra area del sito, presterai consenso all'uso dei cookie. Personalizza Cookies

Mobile: le ultime dal mondo Appcelerator

Tutte le novità sulla migliore piattaforma Mobile a livello enterprise che permette alle aziende di creare, sviluppare ed analizzare il proprio portfolio completo di APP Mobile.


 

Si è verificato un errore nell'elaborarazione del modello.
Error on line 27, column 33 in 10114#60720#946382
entry.getAssetRenderer() is undefined.
It cannot be assigned to assetRenderer
1<#setting locale = languageUtil.getLanguageId(renderRequest) /> 
2 
3<#assign liferay_ui = taglibLiferayHash["/WEB-INF/tld/liferay-ui.tld"] /> 
4 
5<#assign anyAssetClassName = "" /> 
6 
7<#if anyAssetType?has_content> 
8    <#assign anyAssetClassName = portal.getClassName(anyAssetType?number) /> 
9</#if> 
10 
11<#assign isDefaultAssetPublisher = 
12    getterUtil.getBoolean(defaultAssetPublisher ! "") /> 
13 
14<!-- 
15${( renderResponse.preferences.get("portletSetupUseCustomTitle") )! "..."} 
16--> 
17 
18<div class="strip"> 
19    <div class="strip-inner"> 
20        <div class="container"> 
21            <#if entries?has_content> 
22                <#list entries?chunk(2) as chunk> 
23                	<div class="row-fluid"> 
24                        <#list chunk as entry> 
25                        	<#assign entry = entry /> 
26                         
27                        	<#assign assetRenderer = entry.getAssetRenderer() /> 
28                         
29                        	<#assign entryTitle = 
30                        	    htmlUtil.escape(assetRenderer.getTitle(locale)) /> 
31                         
32                        	<#assign viewURL = 
33                        	    assetPublisherHelper.getAssetViewURL( 
34                        	        renderRequest, renderResponse, entry) /> 
35                         
36                        	<#if assetLinkBehavior != "showFullContent"> 
37                        		<#assign viewURL = assetRenderer.getURLViewInContext( 
38                        		    renderRequest, renderResponse, viewURL) /> 
39                        	</#if> 
40                         
41                        	<div class="span6"> 
42                        		<div class="lfr-meta-actions asset-actions"> 
43                        			<@getPrintIcon /> 
44                         
45                        			<@getFlagsIcon /> 
46                         
47                        			<@getEditIcon /> 
48                        		</div> 
49                         
50                        		<h2> 
51                        		    ${entryTitle} 
52                                    <#attempt> 
53                        		        <small style="white-space:nowrap">${entry.publishDate?date?string.medium}</small> 
54                                    <#recover> 
55                                        
56                                    </#attempt> 
57                        		</h2> 
58                                <p class="lead">${htmlUtil.escape(assetRenderer.getSummary(locale))}</p> 
59                                <p class="lead"> 
60                                    <a href="${viewURL}"><@liferay.language key="read-more" /><span class="hide-accessible"><@liferay.language key="about" />${entryTitle}</span> &raquo;</a> 
61                                </p> 
62                        	</div> 
63                     
64                        </#list> 
65                	</div> 
66                </#list> 
67            <#else> 
68 
69                <p class="portlet-msg-info"> 
70                    <#if anyAssetClassName == "com.liferay.prtlet.journal.model.JournalArticle"> 
71                        Nessun articolo trovato 
72                    <#else> 
73                        Nessun elemento trovato 
74                    </#if> 
75                </p> 
76 
77            </#if> 
78	    </div> 
79	</div> 
80</div> 
81 
82<#macro getDiscussion> 
83	<#if validator.isNotNull(assetRenderer.getDiscussionPath()) && (enableComments == "true")> 
84		<br /> 
85 
86		<#assign discussionURL = renderResponse.createActionURL() /> 
87 
88		${discussionURL.setParameter("struts_action", "/asset_publisher/" + assetRenderer.getDiscussionPath())} 
89 
90		<@liferay_ui["discussion"] 
91			className=entry.getClassName() 
92			classPK=entry.getClassPK() 
93			formAction=discussionURL?string 
94			formName="fm" + entry.getClassPK() 
95			ratingsEnabled=enableCommentRatings == "true" 
96			redirect=portalUtil.getCurrentURL(request) 
97			userId=assetRenderer.getUserId() 
98		/> 
99	</#if> 
100</#macro> 
101 
102<#macro getEditIcon> 
103	<#if assetRenderer.hasEditPermission(themeDisplay.getPermissionChecker())> 
104		<#assign redirectURL = renderResponse.createRenderURL() /> 
105 
106		${redirectURL.setParameter("struts_action", "/asset_publisher/add_asset_redirect")} 
107		${redirectURL.setWindowState("pop_up")} 
108 
109		<#assign editPortletURL = assetRenderer.getURLEdit(renderRequest, renderResponse, windowStateFactory.getWindowState("pop_up"), redirectURL)!"" /> 
110 
111		<#if validator.isNotNull(editPortletURL)> 
112			<#assign title = languageUtil.format(locale, "edit-x", entryTitle) /> 
113 
114			<@liferay_ui["icon"] 
115				image="edit" 
116				message=title 
117				url="javascript:Liferay.Util.openWindow({dialog: {width: 960}, id:'" + renderResponse.getNamespace() + "editAsset', title: '" + title + "', uri:'" + htmlUtil.escapeURL(editPortletURL.toString()) + "'});" 
118			/> 
119		</#if> 
120	</#if> 
121</#macro> 
122 
123<#macro getFlagsIcon> 
124	<#if enableFlags == "true"> 
125		<@liferay_ui["flags"] 
126			className=entry.getClassName() 
127			classPK=entry.getClassPK() 
128			contentTitle=entry.getTitle(locale) 
129			label=false 
130			reportedUserId=entry.getUserId() 
131		/> 
132	</#if> 
133</#macro> 
134 
135<#macro getMetadataField 
136	fieldName 
137
138	<#if stringUtil.split(metadataFields)?seq_contains(fieldName)> 
139		<span class="metadata-entry metadata-"${fieldName}"> 
140			<#assign dateFormat = "dd MMM yyyy - HH:mm:ss" /> 
141 
142			<#if fieldName == "author"> 
143				<@liferay.language key="by" /> ${portalUtil.getUserName(assetRenderer.getUserId(), assetRenderer.getUserName())} 
144			<#elseif fieldName == "categories"> 
145				<@liferay_ui["asset-categories-summary"] 
146					className=entry.getClassName() 
147					classPK=entry.getClassPK() 
148					portletURL=renderResponse.createRenderURL() 
149				/> 
150			<#elseif fieldName == "create-date"> 
151				${dateUtil.getDate(entry.getCreateDate(), dateFormat, locale)} 
152			<#elseif fieldName == "expiration-date"> 
153				${dateUtil.getDate(entry.getExpirationDate(), dateFormat, locale)} 
154			<#elseif fieldName == "modified-date"> 
155				${dateUtil.getDate(entry.getModifiedDate(), dateFormat, locale)} 
156			<#elseif fieldName == "priority"> 
157				${entry.getPriority()} 
158			<#elseif fieldName == "publish-date"> 
159				${dateUtil.getDate(entry.getPublishDate(), dateFormat, locale)} 
160			<#elseif fieldName == "tags"> 
161				<@liferay_ui["asset-tags-summary"] 
162					className=entry.getClassName() 
163					classPK=entry.getClassPK() 
164					portletURL=renderResponse.createRenderURL() 
165				/> 
166			<#elseif fieldName == "view-count"> 
167				<@liferay_ui["icon"] 
168					image="history" 
169				/> 
170 
171				${entry.getViewCount()} <@liferay.language key="views" /> 
172			</#if> 
173		</span> 
174	</#if> 
175</#macro> 
176 
177<#macro getPrintIcon> 
178	<#if enablePrint == "true" > 
179		<#assign printURL = renderResponse.createRenderURL() /> 
180 
181		${printURL.setParameter("struts_action", "/asset_publisher/view_content")} 
182		${printURL.setParameter("assetEntryId", entry.getEntryId()?string)} 
183		${printURL.setParameter("viewMode", "print")} 
184		${printURL.setParameter("type", entry.getAssetRendererFactory().getType())} 
185 
186		<#if (validator.isNotNull(assetRenderer.getUrlTitle()))> 
187			<#if (assetRenderer.getGroupId() != themeDisplay.getScopeGroupId())> 
188				${printURL.setParameter("groupId", assetRenderer.getGroupId()?string)} 
189			</#if> 
190 
191			${printURL.setParameter("urlTitle", assetRenderer.getUrlTitle())} 
192		</#if> 
193 
194		${printURL.setWindowState("pop_up")} 
195 
196		<@liferay_ui["icon"] 
197			image="print" 
198			message="print" 
199			url="javascript:Liferay.Util.openWindow({id:'" + renderResponse.getNamespace() + "printAsset', title: '" + languageUtil.format(locale, "print-x-x", ["hide-accessible", entryTitle]) + "', uri: '" + htmlUtil.escapeURL(printURL.toString()) + "'});" 
200		/> 
201	</#if> 
202</#macro> 
203 
204<#macro getRatings> 
205	<#if (enableRatings == "true")> 
206		<div class="asset-ratings"> 
207			<@liferay_ui["ratings"] 
208				className=entry.getClassName() 
209				classPK=entry.getClassPK() 
210			/> 
211		</div> 
212	</#if> 
213</#macro> 
214 
215<#macro getRelatedAssets> 
216	<#if enableRelatedAssets == "true"> 
217		<@liferay_ui["asset-links"] 
218			assetEntryId=entry.getEntryId() 
219		/> 
220	</#if> 
221</#macro> 
222 
223<#macro getSocialBookmarks> 
224	<#if enableSocialBookmarks == "true"> 
225		<@liferay_ui["social-bookmarks"] 
226			displayStyle="${socialBookmarksDisplayStyle}" 
227			target="_blank" 
228			title=entry.getTitle(locale) 
229			url=viewURL 
230		/> 
231	</#if> 
232</#macro>