Imprensa | GOL Linhas Aéreas

Imprensa

Imprensa

publishDate
583 resultados para
Se ha producido un error al procesar la plantilla.
The following has evaluated to null or missing:
==> entry.getDocument  [in template "22106540883819#20119#2096309" at line 57, column 6]

----
Tip: It's the step after the last dot that caused this error, not those before it.
----
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: #if entry.getDocument()??  [in template "22106540883819#20119#2096309" at line 57, column 1]
----
1<style> 
2  #meu-widget-gol { 
3    max-width: 1148px !important; 
4    margin: 0 auto !important; 
5    display: block !important; 
6
7 
8  #meu-widget-gol .gol-views-row { 
9    padding: 2.5rem 0 !important;  
10    border-bottom: 1px solid #EAEAEA !important; 
11    display: flex !important; 
12    flex-direction: column !important; 
13    font-family: 'GOLSansText', sans-serif !important; 
14
15 
16  /* DATA */ 
17  #meu-widget-gol .gol-date-category { 
18    color: rgb(33, 37, 41) !important; 
19    font-size: 12px !important;  
20    font-weight: 700 !important; 
21    margin-bottom: 5px !important; 
22    display: block !important; 
23
24 
25  /* TÍTULO */ 
26  #meu-widget-gol .gol-title { 
27    margin: 5px 0 !important; 
28    display: block !important; 
29
30 
31  #meu-widget-gol .gol-title a { 
32    color: rgb(43, 43, 43) !important; 
33    font-size: 16px !important; 
34    text-decoration: underline !important; 
35    font-weight: 700 !important; 
36
37 
38  #meu-widget-gol .gol-title a:hover { 
39    color: inherit !important; 
40    text-decoration: underline !important; 
41
42</style> 
43 
44<#if entries?has_content> 
45  <#-- ENVELOPAMOS TUDO COM UM ID ÚNICO PARA PROTEGER O CSS --> 
46  <div id="meu-widget-gol" class="gol-view-content"> 
47    <#list entries as entry> 
48       
49<#-- ========================================================= --> 
50<#-- SOLUÇÃO SEGURA (SEM SERVICELOCATOR)                       --> 
51<#-- ========================================================= --> 
52 
53<#-- 1. Pegamos a URL padrão como base --> 
54<#assign url = (entry.getViewURL())!"#" /> 
55 
56<#-- 2. Tentamos extrair a URL amigável que o Liferay indexa no documento --> 
57<#if entry.getDocument()??> 
58    <#assign doc = entry.getDocument() /> 
59     
60    <#-- O segredo: o Liferay indexa a URL amigável em campos específicos --> 
61    <#-- Vamos tentar os campos mais comuns no 7.4 --> 
62    <#assign friendlyURL = (doc.get("friendlyURL"))!"" /> 
63     
64    <#if friendlyURL == ""> 
65        <#assign friendlyURL = (doc.get("urlTitle_pt_BR"))!"" /> 
66    </#if> 
67 
68    <#-- 3. Se achamos o "slug", montamos o caminho direto para o prefixo /w/ --> 
69    <#if friendlyURL?has_content> 
70        <#-- Se o friendlyURL já vier com o caminho completo, usamos ele --> 
71        <#if friendlyURL?starts_with("http") || friendlyURL?starts_with("/")> 
72            <#assign url = friendlyURL /> 
73        <#else> 
74            <#-- Caso contrário, forçamos o prefixo de conteúdo web --> 
75            <#assign url = "/w/" + friendlyURL /> 
76        </#if> 
77    </#if> 
78</#if> 
79 
80<#-- 4. Limpeza final: Se a URL ainda apontar para o portlet de busca,  
81     forçamos o redirecionamento se tivermos o título amigável --> 
82<#if url?contains("SearchResultsPortlet") && entry.getAssetEntryId()??> 
83     <#-- Se tudo falhar, mas o Liferay nos der o link de visualização do objeto --> 
84     <#assign url = (entry.getURLView())!url /> 
85</#if> 
86 
87<#-- ========================================================= --> 
88 
89      <#-- Título --> 
90      <#assign titulo = "Notícia" /> 
91      <#if entry.getHighlightedTitle?? && entry.getHighlightedTitle()?has_content> 
92        <#assign titulo = entry.getHighlightedTitle() /> 
93      <#elseif entry.getTitle?? && entry.getTitle()?has_content> 
94        <#assign titulo = entry.getTitle() /> 
95      </#if> 
96       
97      <#-- Data --> 
98      <#assign dataTexto = "--/--/--" /> 
99      <#attempt> 
100        <#if entry.getDate?? && entry.getDate("createDate")?? && entry.getDate("createDate")?is_date> 
101          <#assign dataTexto = entry.getDate("createDate")?string("dd/MM/yy") /> 
102        </#if> 
103      <#recover> 
104      </#attempt> 
105 
106      <#if dataTexto == "--/--/--"> 
107        <#if entry.getCreationDateString?? && entry.getCreationDateString()?has_content> 
108          <#assign rawDate = entry.getCreationDateString() /> 
109          <#if rawDate?length gte 10> 
110            <#assign dataTexto = rawDate?substring(0, 10) /> 
111          <#else> 
112            <#assign dataTexto = rawDate /> 
113          </#if> 
114        </#if> 
115      </#if> 
116 
117      <#-- Descrição / Texto Longo --> 
118      <#assign resumo = "" /> 
119      <#if entry.getDocument?? && entry.getDocument()??> 
120        <#assign doc = entry.getDocument() /> 
121        <#assign resumo = (doc.get("content_pt_BR"))!"" /> 
122      </#if> 
123      <#if resumo == ""> 
124        <#if entry.getContent?? && entry.getContent()?has_content> 
125          <#assign resumo = entry.getContent() /> 
126        <#elseif entry.getSummary?? && entry.getSummary()?has_content> 
127          <#assign resumo = entry.getSummary() /> 
128        </#if> 
129      </#if> 
130      <#if resumo == ""> 
131        <#if entry.getHighlightedContent?? && entry.getHighlightedContent()?has_content> 
132          <#assign resumo = entry.getHighlightedContent() /> 
133        </#if> 
134      </#if> 
135 
136      <div class="gol-views-row"> 
137         
138        <#-- DATA --> 
139        <span class="gol-date-category"> 
140          ${dataTexto} 
141        </span> 
142 
143        <#-- TÍTULO --> 
144        <h3 class="gol-title"> 
145          <a href="${url}">${titulo}</a> 
146        </h3> 
147 
148        <#-- DESCRIÇÃO E LINK JUNTOS --> 
149        <div style="margin-top: 8px !important; line-height: 1.5 !important; display: block !important; height: auto !important; overflow: visible !important;"> 
150           
151          <#-- TEXTO DA DESCRIÇÃO --> 
152          <span style="color: rgb(118, 118, 118) !important; font-size: 14px !important; display: inline !important; font-family: 'GOLSansText', sans-serif !important;"> 
153            <#if resumo?has_content> 
154              ${resumo?replace("<[^>]*>", " ", "r")?replace("  ", " ", "r")?trim?truncate(400, "...")} 
155            </#if> 
156          </span> 
157           
158          <#-- LINK COLADO NO TEXTO --> 
159          <a href="${url}" style="color: rgb(0, 120, 149) !important; font-size: 14px !important; text-decoration: underline !important; font-weight: 700 !important; display: inline !important; margin-left: 5px !important; font-family: 'GOLSansText', sans-serif !important; white-space: nowrap !important;">Continuar lendo</a> 
160         
161        </div> 
162 
163      </div> 
164    </#list> 
165  </div> 
166<#else> 
167  <div class="alert alert-info">Nenhum resultado encontrado.</div> 
168</#if>