An error occurred while processing the template.
Expression entry.getAssetRenderer().getArticle is undefined on line 9, column 54 in 10157#10197#24813.
1<#if entries?has_content>
2
3 <#assign GroupLocalService = serviceLocator.findService("com.liferay.portal.service.GroupLocalService")>
4 <#assign currentGroup = GroupLocalService.getGroup(themeDisplay.getScopeGroupId()) >
5 <#assign currentGroupId = currentGroup.getGroupId() >
6
7 <div class='push-news row'>
8 <#list entries as entry>
9 <#assign docXml = saxReaderUtil.read(entry.getAssetRenderer().getArticle().getContent()) />
10 <#assign image = docXml.valueOf("//dynamic-element[@name='image']/dynamic-content/text()") />
11 <#assign abstract = docXml.valueOf("//dynamic-element[@name='abstract']/dynamic-content/text()") />
12 <#assign assetRenderer = entry.getAssetRenderer() />
13 <#assign viewURL = assetRenderer.getURLViewInContext(renderRequest, renderResponse, currentURL) />
14 <#assign userAgent = "" + request.getHeader("User-Agent") >
15
16 <#if userAgent?lower_case?contains("ie") >
17 <a class="link col-xs-6 col-sm-6 col-md-6" href="${viewURL}">
18 <#else>
19 <a class="link col-xs-12 col-sm-6 col-md-6" href="${viewURL}">
20 </#if>
21 <figure class="image">
22 <#if image?has_content>
23 <img class="content-image" src="/image-processor-portlet/i/${currentGroupId}/push-actu-246-140/?u=${image}" alt =""/>
24 <#else>
25 <img class="content-image" src="${themeDisplay.getPathThemeImages()}/imageDefault.png" alt =""/>
26 </#if>
27 </figure>
28 <div class="content">
29 <div class="title">
30 <#if entry.getTitle(locale)?length < 35>
31 ${entry.getTitle(locale)}
32 <#else>
33 ${entry.getTitle(locale)?substring(0,36) + '...'}
34 </#if>
35 </div>
36 <hr class="sep"/>
37 <div class="description">
38 <#if abstract?length < 89>
39 ${abstract}
40 <#else>
41 ${abstract?substring(0,90) + '...'}
42 </#if>
43 </div>
44 </div>
45 <div class="clear"></div>
46 </a>
47 </#list>
48 </div>
49</#if>