Ocorreu um erro ao processar o modelo.
Error on line 10, column 9 in 58402#58440#196478
entry.getAssetRenderer() is undefined.
It cannot be assigned to assetRenderer
1<div class="publicationsList"> 
2    <nav class="list"> 
3        <ul> 
4 
5<#if entries?has_content> 
6    <#assign count = 0 /> 
7    <#list entries as curEntry> 
8         
9        <#assign entry = curEntry /> 
10        <#assign assetRenderer = entry.getAssetRenderer() /> 
11 
12        <!-- Entry target URL --> 
13		<#assign viewURL = assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse, curEntry) /> 
14		<!-- Entry target URL to Display Page --> 
15        <#if assetLinkBehavior != "showFullContent"> 
16            <#assign viewURL = assetRenderer.getURLViewInContext(renderRequest, renderResponse, viewURL) /> 
17        </#if> 
18         
19        <!-- Entry Specific Web Content Fields --> 
20        <#assign renderer = curEntry.getAssetRenderer() /> 
21        <#assign className = renderer.getClassName() /> 
22        <#if className == "com.liferay.portlet.journal.model.JournalArticle" > 
23            <#assign docXml = saxReaderUtil.read(curEntry.getAssetRenderer().getArticle().getContent()) /> 
24            <#assign title = curEntry.getTitle(locale) /> 
25            <#assign publish_date =curEntry.getPublishDate()?string["MMMM yyyy"] /> 
26             
27            <#assign text_body = docXml.valueOf("//dynamic-element[@name='Corpo_de_Texto']/dynamic-content/text()") /> 
28            <#assign image_path_event = docXml.valueOf("//dynamic-element[@name='Imagem_em_Destaque']/dynamic-content/text()") /> 
29             
30             
31               
32        </#if> 
33        <!-- HTML --> 
34         
35        <li> 
36        <#if image_path_event?index_of("{")==-1 && image_path_event?has_content> 
37                <div class="leftimage"> 
38                    <img src="${image_path_event}" alt="${title}"/> 
39                </div> 
40                <div class="righttext"> 
41            <#else> 
42                <div class="bottomtext"> 
43            </#if> 
44             
45                <h4>${title}</h4> 
46                <span class="text_body">${text_body}</span> 
47                 
48            </div> 
49             
50            <div class="clear"></div> 
51            <#if text_body?length gt 900 > 
52                    <div class="viewMore"><a href="${viewURL}">ver mais</a></div> 
53            </#if> 
54        </li> 
55         
56    </#list> 
57</#if> 
58        </ul> 
59    </nav> 
60</div>