Si è verificato un errore nell'elaborarazione del modello.
Error on line 24, column 17 in 20155#20195#53297
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<#assign inizioUrlCorrente> ${currentURL}</#assign> 
10<#assign inizioUrlCorrente> ${inizioUrlCorrente?substring(0, inizioUrlCorrente?last_index_of("/"))}</#assign> 
11 
12<div class="contenutoVideo"> 
13 
14<#assign liferay_ui = taglibLiferayHash["/WEB-INF/tld/liferay-ui.tld"] /> 
15 
16<div class="clearfix  cont-titolo-2"> 
17						<h1 class="Titoli nero f_left">Video News</h1> 
18</div> 
19 
20 
21<div> 
22<ul> 
23	<#list entries as entry> 
24		<#assign assetRenderer = entry.getAssetRenderer() /> 
25 
26		<#assign viewURL = assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse, entry) /> 
27 
28    <#assign viewUrlTitle = assetRenderer.getUrlTitle()/> 
29    <#assign groupId = assetRenderer.getGroupId()/> 
30	<#assign articleId =  assetRenderer.getArticle().getArticleId() /> 
31	<#assign urlTitle  = assetRenderer.getArticle().getUrlTitle() /> 
32	<#assign link = "${inizioUrlCorrente}/videonews_det/-/journal_content/56/${groupId}/${urlTitle}"/> 
33		<#if assetLinkBehavior != "showFullContent"> 
34			<#assign viewURL = assetRenderer.getURLViewInContext(renderRequest, renderResponse, viewURL) /> 
35		</#if> 
36		<div class="lfr-meta-actions asset-actions"> 
37			<@getEditIcon /> 
38		</div> 
39 
40  	<#assign docXml = saxReaderUtil.read(entry.getAssetRenderer().getArticle().getContentByLocale(locale)) /> 
41    <#assign urlVideo = docXml.valueOf("//dynamic-element[@name='urlVideo']/dynamic-content/text()") /> 
42    <#assign videoInterno = docXml.valueOf("//dynamic-element[@name='videoInterno']/dynamic-content/text()") /> 
43	<#assign denominazione = docXml.valueOf("//dynamic-element[@name='denominazione']/dynamic-content/text()") /> 
44	<#assign dateFormat = "dd/MM/yyyy" />  
45    <#assign dateFormatSmall = "yyyy/mm/dd" />  
46	 
47	<li class = "contenutoLiLista"> 
48		<#if (denominazione)?? && denominazione!=""> 
49			<a class="Link1" href = "${link}">${denominazione}</a>  
50		</#if> 
51		<div class = "contDivLi"> 
52			<#if (urlVideo)?? && urlVideo != "" > 
53			  <#assign urlFinale = "https://www.youtube.com/embed/" /> 
54			   
55			  <#if urlVideo?index_of("=")!=-1 > 
56				<#assign urlFinale> ${urlFinale + urlVideo?substring(urlVideo?index_of("=")+1)} </#assign> 
57			  <#else> 
58				<#assign urlFinale> ${urlFinale + urlVideo?substring(urlVideo?last_index_of("/")+1)} </#assign> 
59			  </#if> 
60				<iframe class="actAsDiv"  width="100%" height="100%" src="${urlFinale}" align="middle" frameborder="0" allowfullscreen=""></iframe>	 
61			<#elseif (videoInterno)?? && videoInterno != "" >    
62				<video class="actAsDiv" width="100%" height="100%" align="middle" frameborder="0" allowfullscreen="" controls> 
63					<source src="${videoInterno}" type="video/mp4"> 
64						Your browser does not support HTML5 video. 
65				</video> 
66			</#if> 
67		</div> 
68		<p><strong><@liferay.language key="msg.tpl.common.data-pubblicazione" />: </strong> 
69				<time pubdate="pubdate" datetime="${dateUtil.getDate(entry.getPublishDate(), dateFormatSmall, locale)}">${dateUtil.getDate(entry.getPublishDate(), dateFormat, locale)}</time> 
70		</p> 
71	 </li> 
72	</#list> 
73  </ul> 
74</div> 
75</div> 
76 
77<#macro getEditIcon> 
78	<#if assetRenderer.hasEditPermission(themeDisplay.getPermissionChecker())> 
79		<#assign redirectURL = renderResponse.createRenderURL() /> 
80 
81		${redirectURL.setParameter("struts_action", "/asset_publisher/add_asset_redirect")} 
82		${redirectURL.setWindowState("pop_up")} 
83 
84		<#assign editPortletURL = assetRenderer.getURLEdit(renderRequest, renderResponse, windowStateFactory.getWindowState("pop_up"), redirectURL) /> 
85 
86		<#if validator.isNotNull(editPortletURL)> 
87			<#assign title = languageUtil.format(locale, "edit-x", htmlUtil.escape(assetRenderer.getTitle(locale))) /> 
88 
89			<@liferay_ui["icon"] 
90				image="edit" 
91				message=title 
92				url="javascript:Liferay.Util.openWindow({dialog: {width: 960}, id:'" + renderResponse.getNamespace() + "editAsset', title: '" + title + "', uri:'" + htmlUtil.escapeURL(editPortletURL.toString()) + "'});" 
93			/> 
94		</#if> 
95	</#if> 
96</#macro> 
97 
98 
99 
100 
101<#macro getRelatedAssets> 
102	<#if enableRelatedAssets == "true"> 
103		<@liferay_ui["asset-links"] 
104			assetEntryId=entry.getEntryId() 
105		/> 
106	</#if> 
107</#macro>