An error occurred while processing the template.
Error on line 11, column 9 in 1#45608519#45865781
entry.getAssetRenderer() is undefined.
It cannot be assigned to assetRenderer
1<#assign liferay_ui = taglibLiferayHash["/WEB-INF/tld/liferay-ui.tld"] /> 
2 
3<div class="aymancarousel-container"> 
4<div id="myCarousel2" class="carousel2 slide"  >	 
5<ol class="carousel-indicators"> 
6<#assign CNT = 0 /> 
7<#assign Numb = 1 /> 
8<#list entries as entry> 
9	<#assign entry = entry /> 
10 
11	<#assign assetRenderer = entry.getAssetRenderer() /> 
12 
13	<#assign viewURL = assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse, entry) /> 
14 
15	<#if assetLinkBehavior != "showFullContent"> 
16		<#assign viewURL = assetRenderer.getURLViewInContext(renderRequest, renderResponse, viewURL) /> 
17	</#if> 
18	<#assign imagePreviewURL = assetRenderer.getURLImagePreview(renderRequest) /> 
19	 
20	<#assign docXml = saxReaderUtil.read(assetRenderer.getArticle().getContent()) /> 
21    <#assign sw_news_title = docXml.valueOf("//dynamic-element[@name='sw_news_title']/dynamic-content/text()") /> 
22	<#assign sw_short_desc = docXml.valueOf("//dynamic-element[@name='sw_short_desc']/dynamic-content/text()") /> 
23	<#assign sw_l_image = docXml.valueOf("//dynamic-element[@name='sw_l_image']/dynamic-content/text()") /> 
24 
25 
26     <#if CNT==0> 
27		<li data-target="#myCarousel2" data-slide-to="${CNT}" class="active"></li> 
28	</#if> 
29     <#if CNT!=0> 
30		<li data-target="#myCarousel2" data-slide-to="${CNT}"  ></li> 
31	</#if> 
32	<#assign CNT = CNT+1 /> 
33  
34	<#assign Numb = Numb+1 /> 
35</#list> 
36  </ol> 
37 
38<div class="carousel-inner"> 
39	<#assign CNT = 0 /> 
40<#list entries as entry> 
41	<#assign entry = entry /> 
42 
43	<#assign assetRenderer = entry.getAssetRenderer() /> 
44 
45	<#assign viewURL = assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse, entry) /> 
46 
47	<#if assetLinkBehavior != "showFullContent"> 
48		<#assign viewURL = assetRenderer.getURLViewInContext(renderRequest, renderResponse, viewURL) /> 
49	</#if> 
50	<#assign imagePreviewURL = assetRenderer.getURLImagePreview(renderRequest) /> 
51	 
52	<#assign docXml = saxReaderUtil.read(assetRenderer.getArticle().getContentByLocale(locale)) /> 
53    <#assign sw_news_title = docXml.valueOf("//dynamic-element[@name='Title']/dynamic-content/text()") /> 
54	<#assign sw_short_desc = docXml.valueOf("//dynamic-element[@name='Abstract']/dynamic-content/text()") /> 
55	<#assign sw_l_image = docXml.valueOf("//dynamic-element[@name='Image']/dynamic-content/text()") /> 
56 
57 	<#if CNT!=0> 
58		<div class="item"> 
59	</#if>  
60	<#if CNT==0> 
61		<div class="item active"> 
62		<#assign CNT = 1 /> 
63 
64	</#if> 
65     <#if sw_short_desc?has_content > 
66 		<div class="carousel-caption"> 
67			<div class="carousel-text visible-desktop visible-tablet"> 
68				<a href="${viewURL}"> 
69				<h3 style="max-height:64px; overflow:hidden;">${sw_news_title}</h3> 
70				</a> 
71				<p style="max-height:40px; overflow:hidden;">${sw_short_desc}</p> 
72				  
73				  
74			</div> 
75			<div class="carousel-text-ph visible-phone"> 
76				 
77				<a href="${viewURL}"><h3 style="max-height:64px; overflow:hidden;"></h3>${sw_news_title}</a> 
78				  
79			</div> 
80		</div> 
81		<img alt="" class="carousel-image" width="712" height="294" src="${sw_l_image}"/> 
82		 
83		<#else> 
84		<a href="${viewURL}"> 
85		<img alt="" class="carousel-image" width="712" height="294" src="${sw_l_image}"/> 
86		</a> 
87		</#if> 
88	</div> 
89	 
90</#list> 
91</div> 
92  <!-- Carousel nav --> 
93  
94</div> 
95 
96  
97</div> 
98 
99<#macro getEditIcon> 
100	<#if assetRenderer.hasEditPermission(themeDisplay.getPermissionChecker())> 
101		<#assign redirectURL = renderResponse.createRenderURL() /> 
102 
103		${redirectURL.setParameter("struts_action", "/asset_publisher/add_asset_redirect")} 
104		${redirectURL.setWindowState("pop_up")} 
105 
106		<#assign editPortletURL = assetRenderer.getURLEdit(renderRequest, renderResponse, windowStateFactory.getWindowState("pop_up"), redirectURL) /> 
107 
108		<#if validator.isNotNull(editPortletURL)> 
109			<#assign title = languageUtil.format(locale, "edit-x", htmlUtil.escape(assetRenderer.getTitle(locale))) /> 
110 
111			<@liferay_ui["icon"] 
112				image="edit" 
113				message=title 
114				url="javascript:Liferay.Util.openWindow({dialog: {width: 960}, id:'" + renderResponse.getNamespace() + "editAsset', title: '" + title + "', uri:'" + htmlUtil.escapeURL(editPortletURL.toString()) + "'});" 
115			/> 
116		</#if> 
117	</#if> 
118</#macro> 
119<script> 
120$(document).ready(function(){ 
121     $('.carousel2').carousel({ 
122		interval: 5000 
123							}); 
124}); 
125</script> 
126 
127<style> 
128.aymancarousel-container .carousel-caption p{width: 100%;height:20px;overflow:hidden} 
129.aymancarousel-container .carousel-caption a h3 {height: 40px !important; overflow: hidden;} 
130 
131.aymancarousel-container img{height: 350px !important} 
132 
133 
134</style>