tmoreira2020
12/8/2016 - 6:37 PM

avoid-saxreader-adt.ftl

<#assign time1 = .now?time?long>
<#assign perf_count = 0>
<#assign service = serviceLocator.findService("com.liferay.journal.util.JournalContent") >
<#assign model = objectUtil("com.liferay.portal.kernel.portlet.PortletRequestModel", renderRequest, renderResponse)>

<#if entries?has_content>
	<#list entries as curEntry>

		<#assign renderer = curEntry.getAssetRenderer()>
		<#assign article = renderer.getArticle()>

		<#assign html2 = service.getContent(article.getGroupId(), article.getArticleId(), article.getTemplateId(), "view", locale.toString(), model, themeDisplay)>
		<#assign perf_count = perf_count + 1>
		CC ${html2} CC
	</#list>
</#if>

<#assign time2 = .now?time?long>
Tempo: ${time2 - time1} </br>
Quantidade: ${perf_count} </br>