Um erro ocorreu enquanto processava o modelo.
The following has evaluated to null or missing:
==> assetEntry.getPublishDate()  [in template "20102#20128#320217164" at line 47, column 22]

----
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: #local result = assetEntry.getPublish...  [in template "20102#20128#320217164" in function "getDisplayDate" at line 47, column 5]
----
1<#-- Categorias editoriais do Blog Sicoob; ignora outros vocabularios. --> 
2<#assign blogEditorialVocabularyService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetVocabularyLocalService") /> 
3<#function getBlogEditorialCategories blogAsset> 
4    <#local editorialCategories = [] /> 
5    <#list blogAsset.getCategories() as blogCategory> 
6        <#attempt> 
7            <#local blogVocabulary = blogEditorialVocabularyService.fetchAssetVocabulary(blogCategory.getVocabularyId()) /> 
8            <#if blogVocabulary?? && blogVocabulary.getName()?trim?lower_case == "blog" && blogCategory.getName()?trim?lower_case != "blog"> 
9                <#local editorialCategories = editorialCategories + [blogCategory] /> 
10            </#if> 
11        <#recover> 
12        </#attempt> 
13    </#list> 
14    <#return editorialCategories /> 
15</#function> 
16 
17<#-- ADT 02 Posts Recentes Carrossel --> 
18 
19<#assign dateFormat = "dd 'de' MMMM 'de' yyyy" /> 
20<#assign nsId = "blogCarRec_" + randomNamespace /> 
21 
22<#function getPostUrl assetEntry> 
23    <#local url = "#" /> 
24    <#attempt> 
25        <#local blogsEntry = assetEntry.getAssetRenderer().getAssetObject() /> 
26        <#local sitePath = themeDisplay.getPathFriendlyURLPublic() + themeDisplay.getScopeGroup().getFriendlyURL() /> 
27        <#local url = sitePath + "/b/" + blogsEntry.getUrlTitle() /> 
28    <#recover> 
29    </#attempt> 
30    <#return url /> 
31</#function> 
32 
33<#function getCoverUrl assetEntry> 
34    <#local cover = "" /> 
35    <#attempt> 
36        <#local blogsEntry = assetEntry.getAssetRenderer().getAssetObject() /> 
37        <#local cover = blogsEntry.getCoverImageURL(themeDisplay)!"" /> 
38    <#recover> 
39    </#attempt> 
40    <#if !cover?has_content> 
41        <#local cover = themeDisplay.getPathThemeImages() + "/blog-placeholder.jpg" /> 
42    </#if> 
43    <#return cover /> 
44</#function> 
45 
46<#function getDisplayDate assetEntry> 
47    <#local result = assetEntry.getPublishDate() /> 
48    <#attempt> 
49        <#local blogsEntry = assetEntry.getAssetRenderer().getAssetObject() /> 
50        <#local result = blogsEntry.getDisplayDate() /> 
51    <#recover> 
52    </#attempt> 
53    <#return result /> 
54</#function> 
55 
56<#function truncate text size> 
57    <#return (text?length lt size)?then(text, text?substring(0, size) + '...') /> 
58</#function> 
59 
60<#assign carouselEntries = [] /> 
61<#if entries?has_content && entries?size gt 3> 
62    <#assign carouselEntries = entries[3..] /> 
63</#if> 
64 
65<#assign useHomeRecentGrid = themeDisplay.getPortletDisplay().getId() == "com_liferay_asset_publisher_web_portlet_AssetPublisherPortlet_INSTANCE_5ZUZCN72J9sk" /> 
66<#assign firstSlideEntries = [] /> 
67<#assign restChunks = [] /> 
68<#if carouselEntries?has_content> 
69    <#if carouselEntries?size lte 4> 
70        <#assign firstSlideEntries = carouselEntries /> 
71    <#else> 
72        <#assign firstSlideEntries = carouselEntries[0..*4] /> 
73        <#assign restChunks = carouselEntries[4..]?chunk(useHomeRecentGrid?then(4, 3)) /> 
74    </#if> 
75</#if> 
76 
77<#if !(carouselEntries?has_content)> 
78    <div class="acland w-100 py-3 text-center"> 
79        <p class="c-cinza-600 fs-sm mb-0">Sem posts adicionais no momento.</p> 
80    </div> 
81</#if> 
82 
83<#if carouselEntries?has_content> 
84<section class="acland blog-recentes" aria-label="Posts recentes"> 
85    <h2 class="d-inline-block px-4 py-2 mb-4 c-branco bg-turq fw-700 fs-6 mb-3 border-radius-1">Posts recentes</h2> 
86 
87    <div id="${nsId}" class="blog-carousel" data-sb-carousel> 
88        <div class="blog-carousel__track"> 
89 
90            <#-- Slide 1 --> 
91            <div class="blog-carousel__slide blog-carousel__slide--active" data-sb-slide-index="0"> 
92                <div class="row"> 
93 
94                    <#-- Post grande --> 
95                    <#if firstSlideEntries[0]?has_content> 
96                        <#assign big = firstSlideEntries[0] /> 
97                        <#assign bigUrl = getPostUrl(big) /> 
98                        <#assign bigCover = getCoverUrl(big) /> 
99                        <#assign bigCats = getBlogEditorialCategories(big) /> 
100                        <#assign bigDisp = getDisplayDate(big) /> 
101 
102                        <div class="col-12 col-lg-5 pl-0 mb-3 mb-lg-0"> 
103                            <a class="article-entry hover-fade d-flex flex-column gap-2 cursor-pointer" href="${bigUrl}" style="text-decoration: none;"> 
104                                <img class="border-radius-1 w-100 d-block bg-turq" 
105                                     style="aspect-ratio: 16/9; object-fit: cover; min-height: 205px;" 
106                                     src="${bigCover}" 
107                                     alt="${big.getTitle(locale)}" 
108                                     loading="lazy" 
109                                     width="400" 
110                                     height="225" /> 
111                                <h3 class="fs-bs fw-700 c-verdee lh-2 mb-0">${big.getTitle(locale)}</h3> 
112                                <div class="d-flex align-items-center gap-2 flex-wrap"> 
113                                    <#list bigCats as cat> 
114                                        <#if cat?index lt 1> 
115                                            <span class="mb-0 px-2 py-1 lh-1 bg-verdec c-verdee fs-xs">${cat.getName()}</span> 
116                                        </#if> 
117                                    </#list> 
118                                    <time class="c-verdee fs-xs mb-0 flex-shrink-1" datetime="${bigDisp?string('yyyy-MM-dd')}"> 
119                                        ${dateUtil.getDate(bigDisp, dateFormat, locale)} 
120                                    </time> 
121                                </div> 
122                            </a> 
123                        </div> 
124                    </#if> 
125 
126                    <#-- Thumbs --> 
127                    <div class="col-12 col-lg-7 pl-0"> 
128                        <#list firstSlideEntries as entry> 
129                            <#if entry?index gt 0> 
130                                <#assign thUrl = getPostUrl(entry) /> 
131                                <#assign thCover = getCoverUrl(entry) /> 
132                                <a class="row pb-3 article-entry hover-fade cursor-pointer" href="${thUrl}" style="text-decoration: none;"> 
133                                    <div class="col-5 pl-0"> 
134                                        <img class="border-radius-1 w-100 d-block bg-turq" 
135                                             style="height: 80px; object-fit: cover;" 
136                                             src="${thCover}" 
137                                             alt="${entry.getTitle(locale)}" 
138                                             loading="lazy" 
139                                             width="120" 
140                                             height="80" /> 
141                                    </div> 
142                                    <div class="col-7 px-0"> 
143                                        <h3 class="fs-sm fw-700 c-verdee lh-2 mb-0"> 
144                                            ${truncate(entry.getTitle(locale), 75)} 
145                                        </h3> 
146                                    </div> 
147                                </a> 
148                            </#if> 
149                        </#list> 
150                    </div> 
151                </div> 
152            </div> 
153 
154            <#-- Demais slides --> 
155            <#if restChunks?has_content> 
156                <#list restChunks as chunk> 
157                    <div class="blog-carousel__slide" data-sb-slide-index="${chunk?index + 1}"> 
158                        <#if useHomeRecentGrid><div class="row"></#if> 
159                        <#list chunk as entry> 
160                            <#assign thUrl = getPostUrl(entry) /> 
161                            <#assign thCover = getCoverUrl(entry) /> 
162                            <a class="<#if !useHomeRecentGrid>row pb-3 </#if>article-entry hover-fade cursor-pointer" href="${thUrl}" style="text-decoration: none;"> 
163                                <div class="<#if useHomeRecentGrid>col-5 pl-0<#else>col-4 pl-0 mb-3 mb-lg-0</#if>"> 
164                                    <img class="border-radius-1 w-100 d-block bg-turq" 
165                                         style="height: 80px; object-fit: cover;" 
166                                         src="${thCover}" 
167                                         alt="${entry.getTitle(locale)}" 
168                                         loading="lazy" 
169                                         width="120" 
170                                         height="80" /> 
171                                </div> 
172                                <div class="<#if useHomeRecentGrid>col-7<#else>col-8</#if> px-0"> 
173                                    <h3 class="fs-sm fw-700 c-verdee lh-2 mb-0"> 
174                                        ${truncate(entry.getTitle(locale), 75)} 
175                                    </h3> 
176                                </div> 
177                            </a> 
178                        </#list> 
179                        <#if useHomeRecentGrid></div></#if> 
180                    </div> 
181                </#list> 
182            </#if> 
183 
184        </div> 
185 
186        <#-- Controles --> 
187        <#if restChunks?has_content> 
188            <div class="d-flex align-items-center gap-2 py-3"> 
189                <button type="button" class="blog-carousel__btn cursor-pointer" 
190                        data-sb-prev="${nsId}" aria-label="Slide anterior"> 
191                    <svg width="35" height="35" viewBox="0 0 35 35" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"> 
192                        <rect x="-0.5" y="0.5" width="34" height="34" rx="7.5" transform="matrix(-1 0 0 1 34 0)" stroke="#D8D8D8"/> 
193                        <path fill-rule="evenodd" clip-rule="evenodd" d="M19.7803 21.7908C19.4874 22.0697 19.0126 22.0697 18.7197 21.7908L14.2197 17.5051C13.9268 17.2261 13.9268 16.7739 14.2197 16.4949L18.7197 12.2092C19.0126 11.9303 19.4874 11.9303 19.7803 12.2092C20.0732 12.4882 20.0732 12.9404 19.7803 13.2194L15.8107 17L19.7803 20.7806C20.0732 21.0596 20.0732 21.5118 19.7803 21.7908Z" fill="#003642"/> 
194                    </svg> 
195                </button> 
196                <button type="button" class="blog-carousel__btn cursor-pointer" 
197                        data-sb-next="${nsId}" aria-label="Proximo slide"> 
198                    <svg width="35" height="35" viewBox="0 0 35 35" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"> 
199                        <rect x="0.5" y="0.5" width="34" height="34" rx="7.5" stroke="#D8D8D8"/> 
200                        <path fill-rule="evenodd" clip-rule="evenodd" d="M15.2197 21.7908C15.5126 22.0697 15.9874 22.0697 16.2803 21.7908L20.7803 17.5051C21.0732 17.2261 21.0732 16.7739 20.7803 16.4949L16.2803 12.2092C15.9874 11.9303 15.5126 11.9303 15.2197 12.2092C14.9268 12.4882 14.9268 12.9404 15.2197 13.2194L19.1893 17L15.2197 20.7806C14.9268 21.0596 14.9268 21.5118 15.2197 21.7908Z" fill="#003642"/> 
201                    </svg> 
202                </button> 
203            </div> 
204        </#if> 
205    </div> 
206</section> 
207 
208<script> 
209(function(){ 
210    var nsId = '${nsId}'; 
211    function init() { 
212        var c = document.getElementById(nsId); 
213        if (!c || c._sbInit) return; 
214        c._sbInit = true; 
215        var slides = c.querySelectorAll('.blog-carousel__slide'); 
216        if (!slides.length) return; 
217        var current = 0; 
218        var total = slides.length; 
219        function go(idx) { 
220            if (idx < 0) idx = total - 1; 
221            if (idx >= total) idx = 0; 
222            slides[current].classList.remove('blog-carousel__slide--active'); 
223            slides[idx].classList.add('blog-carousel__slide--active'); 
224            current = idx; 
225        } 
226        document.querySelectorAll('[data-sb-prev="' + nsId + '"]').forEach(function(b){ b.addEventListener('click', function(e){ e.preventDefault(); go(current - 1); }); }); 
227        document.querySelectorAll('[data-sb-next="' + nsId + '"]').forEach(function(b){ b.addEventListener('click', function(e){ e.preventDefault(); go(current + 1); }); }); 
228    } 
229    if (window.Liferay && Liferay.on) Liferay.on('allPortletsReady', init); 
230    init(); 
231    var t = 0; var iv = setInterval(function(){ init(); t++; var c = document.getElementById(nsId); if ((c && c._sbInit) || t > 15) clearInterval(iv); }, 200); 
232})(); 
233</script> 
234</#if> 

Posts mais acessados

Capital de giro: o guia completo para manter a saúde financeira da sua empresa Toda empresa precisa vender. Mas, antes disso, ela precisa continuar funcionando. Existe um...
Capital de giro, inclui: ativos circulantes e passivos circulantes. Os ativos circulantes são tudo o que a empresa possui em suas reservas ou que possa gerar dinheiro no curto prazo, como ...
Descubra como o Seguro Pecuário do Sicoob pode proteger seu agronegócio e garantir a segurança dos seus animais. Conheça as vantagens e saiba como contratar essa proteção essencial!
Saiba como o seguro empresarial pode proteger seu patrimônio, apoiar a gestão de riscos, ajudar no crescimento e também cuidar das pessoas que fazem a sua empresa acontecer.
Venda mais com a maquininha Sipag: rapidez, taxas competitivas, recebimento das vendas parceladas em até 24 horas e muitas outras vantagens.
Neste artigo, a ideia é analisar as possíveis influências do cenário econômico em 2025 sobre o empreendedorismo. Abordar as tendências econômicas esperadas, incluindo inovações tecnológicas, mudanças no comportamento do consumidor e políticas governamentais que podem afetar o ambiente de negócios. Discutir como os empreendedores podem se preparar para essas mudanças, ajustando suas estratégias de negócio e adotando práticas sustentáveis. Além disso, destacar a importância de acompanhar as tendências de mercado, a análise de dados e a adaptação rápida às novas realidades econômicas. O objetivo é fornecer insights valiosos para empreendedores que buscam se posicionar com sucesso em um mercado em constante evolução.
Você sabe como incentivar a inclusão de mulheres no mercado? Veja as nossas dicas de como contribuir com o empreendedorismo feminino.
Empreender é o sonho de muitas pessoas, mas é um caminho que requer muita dedicação, planejamento e esforço. Se você está pensando em começar o seu próprio negócio, confira algumas dicas para te ajudar nos primeiros passos.
Linhas de Crédito para Alavancar Seu Negócio Quando a gente fala em fazer uma empresa crescer, inovar ou simplesmente manter o fôlego financeiro em dia, uma coisa é certa: contar com uma...
Descubra maneiras práticas de tornar sua empresa mais sustentável, como reaproveitamento de água, uso de energia solar e mais.
O que é o cooperativismo financeiro? Quais as suas vantagens? Como funciona esse modelo de negócios? Explicamos tudo sobre uma cooperativa financeira e como se tornar um cooperado neste post. Confira!
O Sicoob acredita que uma sociedade mais desenvolvida economicamente contribui para que os negócios também prosperem e alcancem o sucesso. É por isso que a instituição investe em ações para fomentar o empreendedorismo. Confira as principais no post abaixo!