Si è verificato un errore nell'elaborarazione del modello.
Error on line 9, column 17 in 20155#20195#95956
entry.getAssetRenderer() is undefined.
It cannot be assigned to assetRenderer
1<#assign liferay_ui = taglibLiferayHash["/WEB-INF/tld/liferay-ui.tld"] /> 
2<#assign inizioUrlCorrente> ${currentURL}</#assign> 
3<#assign x = 0 /> 
4<#assign inizioUrlCorrente> ${inizioUrlCorrente?substring(0, inizioUrlCorrente?last_index_of("/"))}</#assign> 
5 
6<div id="sectionSlider"> 
7<div><ul id ="sliderBanner"> 
8	<#list entries as entry> 
9		<#assign assetRenderer = entry.getAssetRenderer() /> 
10		<#assign viewURL = assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse, entry) /> 
11	    <#assign viewUrlTitle = assetRenderer.getUrlTitle()/> 
12	    <#assign groupId = assetRenderer.getGroupId()/> 
13		<#assign articleId =  assetRenderer.getArticle().getArticleId() /> 
14		<#assign urlTitle  = assetRenderer.getArticle().getUrlTitle() /> 
15		<#assign link = "${inizioUrlCorrente}/news-in-primo-piano_det/-/journal_content/56/${groupId}/${urlTitle}"/> 
16		<#if assetLinkBehavior != "showFullContent"> 
17			<#assign viewURL = assetRenderer.getURLViewInContext(renderRequest, renderResponse, viewURL) /> 
18		</#if> 
19		<#assign docXml = saxReaderUtil.read(entry.getAssetRenderer().getArticle().getContentByLocale(locale)) /> 
20		<#assign immagine= docXml.valueOf("//dynamic-element[@name='immagineSlider']/dynamic-content/text()")  /> 
21		<#assign titolo= docXml.valueOf("//dynamic-element[@name='titoloSlider']/dynamic-content/text()")   /> 
22		<#assign testo= docXml.valueOf("//dynamic-element[@name='testoSlider']/dynamic-content/text()")   /> 
23		<#if immagine!="" || titolo!= "" || testo!= ""> 
24			<#assign x = x+1 /> 
25			<!--li style="width:904px;"--> 
26			<li> 
27				<#if ( link != "#")> 
28					<a href= '${link}'> 
29				</#if> 
30				<div class = "pezzoSlider" style = "background-image: url('${immagine}');"> 
31					<h2 class="Titoli-slider pezzoSliderContenuto" >${titolo}</h2> <p class="testo-slider pezzoSliderContenuto">${testo}</p></div> 
32				<#if ( link != "#")> 
33					</a> 
34				</#if> 
35			</li> 
36		</#if> 
37		</#list> 
38  </ul></div> 
39</div> 
40 
41<script type="text/javascript"> 
42	$(document).ready(function() { 
43	<#if 2 <= x > 
44		$('#sliderBanner').bxSlider({ 
45			auto: true, 
46			slideWidth: 904, 
47			infiniteLoop : true, 
48			adaptiveHeight : true, 
49			randomStart:   false 
50		}); 
51	<#elseif  x == 0 > 
52		$('#sectionSlider').hide(); 
53	</#if> 
54	}); 
55</script> 
56 
57 
58<#macro getEditIcon> 
59	<#if assetRenderer.hasEditPermission(themeDisplay.getPermissionChecker())> 
60		<#assign redirectURL = renderResponse.createRenderURL() /> 
61 
62		${redirectURL.setParameter("struts_action", "/asset_publisher/add_asset_redirect")} 
63		${redirectURL.setWindowState("pop_up")} 
64 
65		<#assign editPortletURL = assetRenderer.getURLEdit(renderRequest, renderResponse, windowStateFactory.getWindowState("pop_up"), redirectURL) /> 
66 
67		<#if validator.isNotNull(editPortletURL)> 
68			<#assign title = languageUtil.format(locale, "edit-x", htmlUtil.escape(assetRenderer.getTitle(locale))) /> 
69 
70			<@liferay_ui["icon"] 
71				image="edit" 
72				message=title 
73				url="javascript:Liferay.Util.openWindow({dialog: {width: 960}, id:'" + renderResponse.getNamespace() + "editAsset', title: '" + title + "', uri:'" + htmlUtil.escapeURL(editPortletURL.toString()) + "'});" 
74			/> 
75		</#if> 
76	</#if> 
77</#macro> 
Non hai i ruoli necessari per accedere a questa portlet.
Si è verificato un errore nell'elaborarazione del modello.
Error on line 30, column 17 in 20155#20195#53275
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<#assign inizioUrlCorrente> ${currentURL}</#assign> 
11<#assign inizioUrlCorrente> ${inizioUrlCorrente?substring(0, inizioUrlCorrente?last_index_of("/"))}</#assign> 
12 
13<div class="contenutoVideoHome"> 
14 
15<#assign liferay_ui = taglibLiferayHash["/WEB-INF/tld/liferay-ui.tld"] /> 
16 
17<div class="clearfix  cont-titolo-2" id="titoloVideoHome"> 
18						<h1 class="Titoli nero f_left"><@liferay.language key="msg.tpl.home.Video" /></h1> 
19</div> 
20 
21<div id="titoloAltro"> 
22						<a href ="${inizioUrlCorrente}/videonews"><@liferay.language key="msg.tpl.home.ArchivioVideo" /></a> 
23</div> 
24 
25<div> 
26<ul> 
27<#assign x=0 /> 
28	<#list entries as entry> 
29	<#assign x=x+1 /> 
30		<#assign assetRenderer = entry.getAssetRenderer() /> 
31 
32		<#assign viewURL = assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse, entry) /> 
33 
34    <#assign viewUrlTitle = assetRenderer.getUrlTitle()/> 
35    <#assign groupId = assetRenderer.getGroupId()/> 
36	<#assign articleId =  assetRenderer.getArticle().getArticleId() /> 
37	<#assign urlTitle  = assetRenderer.getArticle().getUrlTitle() /> 
38	<#assign link = "${inizioUrlCorrente}/videonews_det/-/journal_content/56/${groupId}/${urlTitle}"/> 
39		<#if assetLinkBehavior != "showFullContent"> 
40			<#assign viewURL = assetRenderer.getURLViewInContext(renderRequest, renderResponse, viewURL) /> 
41		</#if> 
42		<div class="lfr-meta-actions asset-actions"> 
43			<@getEditIcon /> 
44		</div> 
45 
46  	<#assign docXml = saxReaderUtil.read(entry.getAssetRenderer().getArticle().getContentByLocale(locale)) /> 
47    <#assign urlVideo = docXml.valueOf("//dynamic-element[@name='urlVideo']/dynamic-content/text()") /> 
48    <#assign videoInterno = docXml.valueOf("//dynamic-element[@name='videoInterno']/dynamic-content/text()") /> 
49	 
50	<#if (urlVideo)?? && urlVideo != "" > 
51          <#assign urlFinale = "https://www.youtube.com/embed/" /> 
52           
53		  <#if urlVideo?index_of("=")!=-1 > 
54			<#assign urlFinale> ${urlFinale + urlVideo?substring(urlVideo?index_of("=")+1)} </#assign> 
55		  <#else> 
56			<#assign urlFinale> ${urlFinale + urlVideo?substring(urlVideo?last_index_of("/")+1)} </#assign> 
57          </#if> 
58		 	   
59		  <li class="contenutoLiListaHome"> 
60			<iframe class="sfondoNero" width="288" height="180.1706161137441"  src="${urlFinale?trim}?wmode=transparent" align="middle" frameborder="0" allowfullscreen=""></iframe> 
61		  </li> 
62	 
63	<#elseif (videoInterno)?? && videoInterno != "" > 
64		   
65		  <li class="contenutoLiListaHome">           
66			<video class="sfondoNero" width="288" height="180.1706161137441" align="middle" frameborder="0" allowfullscreen="" controls> 
67                <source src="${videoInterno}" type="video/mp4"> 
68                    Your browser does not support HTML5 video. 
69			</video> 
70		  </li>           
71      
72	 </#if> 
73 
74	</#list> 
75  </ul> 
76</div> 
77</div> 
78<script> 
79<#if x==0 > 
80$(".contenutoVideoHome").hide(); 
81</#if> 
82</script> 
83 
84<#macro getEditIcon> 
85	<#if assetRenderer.hasEditPermission(themeDisplay.getPermissionChecker())> 
86		<#assign redirectURL = renderResponse.createRenderURL() /> 
87 
88		${redirectURL.setParameter("struts_action", "/asset_publisher/add_asset_redirect")} 
89		${redirectURL.setWindowState("pop_up")} 
90 
91		<#assign editPortletURL = assetRenderer.getURLEdit(renderRequest, renderResponse, windowStateFactory.getWindowState("pop_up"), redirectURL) /> 
92 
93		<#if validator.isNotNull(editPortletURL)> 
94			<#assign title = languageUtil.format(locale, "edit-x", htmlUtil.escape(assetRenderer.getTitle(locale))) /> 
95 
96			<@liferay_ui["icon"] 
97				image="edit" 
98				message=title 
99				url="javascript:Liferay.Util.openWindow({dialog: {width: 960}, id:'" + renderResponse.getNamespace() + "editAsset', title: '" + title + "', uri:'" + htmlUtil.escapeURL(editPortletURL.toString()) + "'});" 
100			/> 
101		</#if> 
102	</#if> 
103</#macro> 
104 
105 
106 
107 
108<#macro getRelatedAssets> 
109	<#if enableRelatedAssets == "true"> 
110		<@liferay_ui["asset-links"] 
111			assetEntryId=entry.getEntryId() 
112		/> 
113	</#if> 
114</#macro> 
Non hai i ruoli necessari per accedere a questa portlet.
Non hai i ruoli necessari per accedere a questa portlet.