Busca Notícias

Últimas notícias

Um erro ocorreu enquanto processava o modelo.
The following has evaluated to null or missing:
==> staticUtil  [in template "10154#10192#69691402" at line 11, column 25]

----
Tip: If the failing expression is known to legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing</#if>. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)??
----

----
FTL stack trace ("~" means nesting-related):
	- Failed at: PropsUtil = staticUtil["com.liferay.p...  [in template "10154#10192#69691402" at line 11, column 13]
----
1<#if entries?has_content> 
2    <div class="tp-faixa-conteudo"> 
3       <ul class="tp-cards"> 
4 
5        <#-- Variaveis comuns ao loop --> 
6        <#assign 
7            assetLinkBehavior = "showFullContent" 
8            viewInContext = (assetLinkBehavior = "viewInPortlet") 
9            language = locale.getLanguage() 
10 
11            PropsUtil = staticUtil["com.liferay.portal.kernel.util.PropsUtil"] 
12            StringPool = staticUtil["com.liferay.portal.kernel.util.StringPool"] 
13            PropsValues = staticUtil["com.liferay.portal.util.PropsValues"] 
14 
15            botaoLeia = languageUtil.get(locale, "label-leia") 
16            labelNoticia = languageUtil.get(locale, "label-noticia") 
17 
18            estruturaNoticiaId = PropsUtil.get("pce.estrutura.noticia.id") 
19            estruturaNoticiaIntranetId = PropsUtil.get("pce.estrutura.noticia.intranet.id") 
20            buscaNoticiaLayout = PropsUtil.get("pce.busca.noticia.layout") 
21
22 
23        <#-- Variaveis de preferências --> 
24        <#if portletPreferences["assetLinkBehavior"]?has_content> 
25            <#assign 
26                assetLinkBehavior = getterUtil.getString(portletPreferences["assetLinkBehavior"][0], "showFullContent") 
27                viewInContext = (assetLinkBehavior == "viewInPortlet") 
28
29        </#if> 
30 
31        <#-- loop --> 
32        <#list entries as curEntry> 
33            <#assign assetRenderer = curEntry.getAssetRenderer()> 
34            <#assign imgPreview = assetRenderer.getURLImagePreview(renderRequest)> 
35 
36            <#-- URL --> 
37            <#assign viewURL = "${assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse, curEntry, viewInContext)}"> 
38            <#if assetRenderer.getArticle??> <#-- Soh funciona para Conteudo Web --> 
39                <#assign journalArticle = assetRenderer.getArticle()> 
40 
41                <#if journalArticle??> 
42                    <#if journalArticle.getStructureId() == estruturaNoticiaId> 
43                        <#assign furl = themeDisplay.getLayout().getFriendlyURL(locale)> 
44                        <#assign layoutUrl = furl?substring(0,furl?last_index_of("/"))> 
45                        <#assign i18nPath = StringPool.BLANK> 
46                        <#if themeDisplay.getSiteDefaultLocale() != themeDisplay.getLocale() && PropsValues.LOCALE_PREPEND_FRIENDLY_URL_STYLE == 3> 
47                            <#assign i18nPath = StringPool.SLASH + language> 
48                        </#if> 
49                        <#assign viewURL = i18nPath + layoutUrl + buscaNoticiaLayout + "/-/noticia/" + curEntry.getClassPK() + StringPool.SLASH + slugifyUtil.slugify(assetRenderer.getTitle(locale))> 
50                    </#if> 
51                </#if> 
52            </#if> 
53 
54            <#-- Resumo --> 
55            <#assign resumo = curEntry.getSummary(locale)> 
56            <#if resumo?trim == ""> 
57                <#assign resumo = assetRenderer.getSummary(renderRequest, renderResponse)> 
58            </#if> 
59 
60            <li class="tp-card-item tp-card-animation "> 
61                 <div class="tp-card-imagem"> 
62                    <a href="${viewURL}"> 
63                       <div class="tp-card-imagem-interna" style="background-image: url('${imgPreview}');">&nbsp;</div> 
64                    </a> 
65                 </div> 
66                 <div class="tp-card-corpo"> 
67                    <p class="tp-card-chapeu"><span>${labelNoticia}</span> ${curEntry.getPublishDate()?string["dd/MM/yyyy"]}</p> 
68                    <h4 class="tp-card-titulo"> <a href="${viewURL}">${curEntry.getTitle(locale)}</a> </h4> 
69                    <div class="tp-card-descricao">${resumo}</div> 
70                    <div class="tp-card-link"> <a href="${viewURL}"> ${botaoLeia}<span class="tp-card-link-icone"><i class="bi-arrow-right"></i></span> </a> </div> 
71                 </div> 
72            </li> 
73 
74        </#list> 
75        </ul> 
76    </div> 
77</#if> 

Agência Embrapa de Notícias

Últimas notícias não é um tipo visível.

Outras notícias

Últimas notícias não é um tipo visível.