Um erro ocorreu enquanto processava o modelo.
Error on line 11, column 1 in 20155#20195#47291
portlet_display.getPortletSetup() is undefined.
It cannot be assigned to portlet_setup
1<style> 
2.aui .portlet-asset-publisher .asset-abstract .resumo .sumario { 
3    overflow: hidden; 
4    padding: 0 0 0 1.4em; 
5    width: 100%; 
6
7</style> 
8 
9<#assign portlet_display = portletDisplay> 
10<#assign portlet_title = htmlUtil.escape(portlet_display.getTitle())> 
11<#assign portlet_setup = portlet_display.getPortletSetup()> 
12<#assign portlet_show_title = portlet_setup.getValue("portletSetupUseCustomTitle","Boolean")> 
13<#if portlet_show_title == 'true'> 
14<div class="page-header">  
15<h3>${portlet_title}</h3>  
16</div> 
17</#if> 
18 
19<#assign liferay_ui = taglibLiferayHash["/WEB-INF/tld/liferay-ui.tld"] /> 
20 
21<#list entries as entry> 
22	<#assign entry = entry /> 
23 
24	<#assign assetRenderer = entry.getAssetRenderer() /> 
25 
26	<#assign entryTitle = htmlUtil.escape(assetRenderer.getTitle(locale)) /> 
27 
28	<#assign viewURL = assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse, entry) /> 
29 
30	<#if assetLinkBehavior != "showFullContent"> 
31		<#assign viewURL = assetPublisherHelperImpl.getAssetViewURL(renderRequest, renderResponse, entry, true) /> 
32	</#if> 
33 
34	<div class="asset-abstract"> 
35		<div class="row-fluid"> 
36		 
37		<div class="detalhes span2"> 
38			<div class="data"><i class="icon-calendar"></i> 
39			<@getMetadataField fieldName="create-date" /> 
40			</div> 
41			<div class="hora"> <i class="icon-time"></i> 
42			<@getMetadataField fieldName="modified-date" /> 
43			</div> 
44			<@getPrintIcon /> 
45 
46			<@getFlagsIcon /> 
47 
48			<@getEditIcon /> 
49		</div> 
50		<div class="resumo span10">  
51			<div class="container-chapeu"> </div> 
52			<div class="sumario"> 
53		 
54		    	<div class="imagem"> 
55		                    <img src="${entry.getAssetRenderer().getThumbnailPath(renderRequest)}"/> 
56                </div> 
57				<h3 class="asset-title"> 
58				<a href="${viewURL}">${entryTitle}</a> 
59				</h3> 
60			<@getMetadataField fieldName="view-count" /> 
61 
62<!-- 			<div class="asset-content"> --> 
63<!-- 				<@getSocialBookmarks /> --> 
64 
65				<div class="asset-summary"> 
66					<@getMetadataField fieldName="author" /> 
67 
68					<a href="${viewURL}"style="color: #000;text-decoration: none;">${htmlUtil.escape(assetRenderer.getSummary(locale))}</a> 
69					 
70 
71<!-- 					<a href="${viewURL}"><@liferay.language key="read-more" /><span class="hide-accessible"><@liferay.language key="about" />${entryTitle}</span> &raquo;</a> --> 
72				</div> 
73				<div class="tags">  
74				<@getMetadataField fieldName="tags" />				 
75				</div> 
76 
77				<@getRatings /> 
78 
79				<@getRelatedAssets /> 
80 
81				<@getDiscussion /> 
82<!-- 			</div> asset-content--> 
83			</div> 
84		</div> 
85		 
86		</div> 
87	</div> 
88</#list> 
89<div id="noticias-home"> 
90		<div class="link-mais"> <a href="/web/guest/publicacoes">Acesse a Área de Publicações</a> </div> 
91</div> 
92<#macro getDiscussion> 
93	<#if validator.isNotNull(assetRenderer.getDiscussionPath()) && (enableComments == "true")> 
94		<br /> 
95 
96		<#assign discussionURL = renderResponse.createActionURL() /> 
97 
98		${discussionURL.setParameter("struts_action", "/asset_publisher/" + assetRenderer.getDiscussionPath())} 
99 
100		<@liferay_ui["discussion"] 
101			className=entry.getClassName() 
102			classPK=entry.getClassPK() 
103			formAction=discussionURL?string 
104			formName="fm" + entry.getClassPK() 
105			ratingsEnabled=enableCommentRatings == "true" 
106			redirect=portalUtil.getCurrentURL(request) 
107			userId=assetRenderer.getUserId() 
108		/> 
109	</#if> 
110</#macro> 
111 
112<#macro getEditIcon> 
113	<#if assetRenderer.hasEditPermission(themeDisplay.getPermissionChecker())> 
114		<#assign redirectURL = renderResponse.createRenderURL() /> 
115 
116		${redirectURL.setParameter("struts_action", "/asset_publisher/add_asset_redirect")} 
117		${redirectURL.setWindowState("pop_up")} 
118 
119		<#assign editPortletURL = assetRenderer.getURLEdit(renderRequest, renderResponse, windowStateFactory.getWindowState("pop_up"), redirectURL)!"" /> 
120 
121		<#if validator.isNotNull(editPortletURL)> 
122			<#assign title = languageUtil.format(locale, "edit-x", entryTitle) /> 
123 
124			<@liferay_ui["icon"] 
125				image="edit" 
126				message=title 
127				url="javascript:Liferay.Util.openWindow({dialog: {width: 960}, id:'" + renderResponse.getNamespace() + "editAsset', title: '" + title + "', uri:'" + htmlUtil.escapeURL(editPortletURL.toString()) + "'});" 
128			/> 
129		</#if> 
130	</#if> 
131</#macro> 
132 
133<#macro getFlagsIcon> 
134	<#if enableFlags == "true"> 
135		<@liferay_ui["flags"] 
136			className=entry.getClassName() 
137			classPK=entry.getClassPK() 
138			contentTitle=entry.getTitle(locale) 
139			label=false 
140			reportedUserId=entry.getUserId() 
141		/> 
142	</#if> 
143</#macro> 
144 
145<#macro getMetadataField 
146	fieldName 
147
148	<#if stringUtil.split(metadataFields)?seq_contains(fieldName)> 
149		<span class="metadata-entry metadata-"${fieldName}"> 
150			<#assign dateFormat =  "dd MMM yyyy" /> 
151			<#assign dateFormatNew =  "HH:mm:ss" /> 
152			 
153			<#if fieldName == "author"> 
154				<@liferay.language key="by" /> ${portalUtil.getUserName(assetRenderer.getUserId(), assetRenderer.getUserName())} 
155			<#elseif fieldName == "categories"> 
156				<@liferay_ui["asset-categories-summary"] 
157					className=entry.getClassName() 
158					classPK=entry.getClassPK() 
159					portletURL=renderResponse.createRenderURL() 
160				/> 
161			<#elseif fieldName == "create-date"> 
162				${dateUtil.getDate(entry.getCreateDate(), dateFormat, locale)} 
163			<#elseif fieldName == "expiration-date"> 
164				${dateUtil.getDate(entry.getExpirationDate(), dateFormat, locale)} 
165			<#elseif fieldName == "modified-date"> 
166				${dateUtil.getDate(entry.getModifiedDate(), dateFormatNew, locale)} 
167			<#elseif fieldName == "priority"> 
168				${entry.getPriority()} 
169			<#elseif fieldName == "publish-date"> 
170				${dateUtil.getDate(entry.getPublishDate(), dateFormat, locale)} 
171			<#elseif fieldName == "tags"> 
172				<@liferay_ui["asset-tags-summary"] 
173					className=entry.getClassName() 
174					classPK=entry.getClassPK() 
175					portletURL=renderResponse.createRenderURL() 
176				/> 
177			<#elseif fieldName == "view-count"> 
178				<@liferay_ui["icon"] 
179					image="history" 
180				/> 
181 
182				${entry.getViewCount()} <@liferay.language key="views" /> 
183			</#if> 
184		</span> 
185	</#if> 
186</#macro> 
187 
188<#macro getPrintIcon> 
189	<#if enablePrint == "true" > 
190		<#assign printURL = renderResponse.createRenderURL() /> 
191 
192		${printURL.setParameter("struts_action", "/asset_publisher/view_content")} 
193		${printURL.setParameter("assetEntryId", entry.getEntryId()?string)} 
194		${printURL.setParameter("viewMode", "print")} 
195		${printURL.setParameter("type", entry.getAssetRendererFactory().getType())} 
196 
197		<#if (validator.isNotNull(assetRenderer.getUrlTitle()))> 
198			<#if (assetRenderer.getGroupId() != themeDisplay.getScopeGroupId())> 
199				${printURL.setParameter("groupId", assetRenderer.getGroupId()?string)} 
200			</#if> 
201 
202			${printURL.setParameter("urlTitle", assetRenderer.getUrlTitle())} 
203		</#if> 
204 
205		${printURL.setWindowState("pop_up")} 
206 
207		<@liferay_ui["icon"] 
208			image="print" 
209			message="print" 
210			url="javascript:Liferay.Util.openWindow({id:'" + renderResponse.getNamespace() + "printAsset', title: '" + languageUtil.format(locale, "print-x-x", ["hide-accessible", entryTitle]) + "', uri: '" + htmlUtil.escapeURL(printURL.toString()) + "'});" 
211		/> 
212	</#if> 
213</#macro> 
214 
215<#macro getRatings> 
216	<#if (enableRatings == "true")> 
217		<div class="asset-ratings"> 
218			<@liferay_ui["ratings"] 
219				className=entry.getClassName() 
220				classPK=entry.getClassPK() 
221			/> 
222		</div> 
223	</#if> 
224</#macro> 
225 
226<#macro getRelatedAssets> 
227	<#if enableRelatedAssets == "true"> 
228		<@liferay_ui["asset-links"] 
229			assetEntryId=entry.getEntryId() 
230		/> 
231	</#if> 
232</#macro> 
233 
234<#macro getSocialBookmarks> 
235	<#if enableSocialBookmarks == "true"> 
236		<@liferay_ui["social-bookmarks"] 
237			displayStyle="${socialBookmarksDisplayStyle}" 
238			target="_blank" 
239			title=entry.getTitle(locale) 
240			url=viewURL 
241		/> 
242	</#if> 
243</#macro>