Resultados da busca

Um erro ocorreu enquanto processava o modelo.
The following has evaluated to null or missing:
==> getLayoutPublishDate(entry)  [in template "CUSTOM-CARD" at line 120, column 206]

----
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: contentDateValue = (isArticle)?then((...  [in template "CUSTOM-CARD" in macro "renderCard" at line 120, column 33]
	- Reached through: @customCard.renderCard configuration,...  [in template "91328003644047#20120#33252" at line 86, column 49]
----
1<#assign groupId = request.getParameterNames()?sequence?seq_contains("groupId")?string(paramUtil.getString(request, "groupId"), scopeGroupId)/> 
2 
3<#assign templatePath> 
4    _TEMPLATE_CONTEXT_/${themeDisplay.getCompanyId()}/${groupId}/${serviceLocator 
5    .findService("com.liferay.portal.kernel.service.ClassNameLocalService") 
6    .getClassNameId("com.liferay.portal.kernel.theme.NavItem")} 
7</#assign> 
8 
9<#import  "${templatePath}/CUSTOM-CARD" as customCard /> 
10 
11<#assign templatePath> 
12	_TEMPLATE_CONTEXT_/${themeDisplay.getCompanyId()}/${groupId}/${serviceLocator 
13		.findService("com.liferay.portal.kernel.service.ClassNameLocalService") 
14		.getClassNameId("com.liferay.portal.kernel.theme.NavItem")} 
15</#assign> 
16 
17<#attempt> 
18	<#import "${templatePath}/UTILS-TEMPLATE" as utils /> 
19<#recover> 
20</#attempt> 
21 
22<#assign  
23	assetEntryLocalService=serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryLocalService") 
24/> 
25 
26<div class="results-container-wrapper col-12 col-md-9 col-lg-8 px-0"> 
27	<div class="c-mb-4 c-mt-4 search-total-label ${(searchResultsPortletDisplayContext.getKeywords() != '')?then('', 'd-none')}"> 
28		<#if (searchContainer.getTotal() > 0)> 
29			${languageUtil.format(locale, "x-result-for-x", [searchContainer.getTotal(), "<strong>" + htmlUtil.escape(searchResultsPortletDisplayContext.getKeywords()) + "</strong>"], false)} 
30		<#else> 
31			${languageUtil.format(locale, "x-results-for-x", [searchContainer.getTotal(), "<strong>" + htmlUtil.escape(searchResultsPortletDisplayContext.getKeywords()) + "</strong>"], false)} 
32		</#if> 
33	</div> 
34 
35    <div"> 
36        <ul class="row p-0"> 
37            <#if entries?has_content> 
38                <#list entries as entry> 
39                    <#assign  
40						asset=assetEntryLocalService.getEntry(entry.getClassName(), entry.getClassPK()) 
41                     	categoriesNames=asset.getCategories()?map(c -> c.getTitle(locale)) 
42						configuration = { 
43							"horizontalCard": true, 
44							"coverImage": false, 
45							"iconImage": false, 
46							"hideImage" : true, 
47							"hideCategories": false, 
48							"hideOverlineText": true, 
49							"uppercaseOverlineText": true, 
50							"categoryLabelType": "label-inverse-primary", 
51							"hideText": false, 
52							"hideButton": true, 
53							"hideShareIcon": true, 
54							"hideDateText": false, 
55							"contentDateField": "publishDate", 
56							"contentShareLinkField": "displayPage", 
57							"dateTextFormat":  "default", 
58							"titleLineClamp": "3", 
59							"textLineClamp":"3", 
60							"imageURL": "", 
61							"subtitleContent": entry.getContent()!" ", 
62							"clayIcon": "plus", 
63							"iconSize": "12px", 
64							"borderWidth": "2px", 
65							"iconColor": "white", 
66							"type": "link", 
67							"buttonType": "link", 
68							"buttonSize": "nm", 
69							"buttonText": "", 
70							"buttonUrl": "", 
71							"downloadButton": false, 
72							"removeEditableProps": true, 
73							"linkInTitle": true 
74
75					/> 
76 
77					<#assign 
78					    assetEntryLocalService=serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryLocalService") 
79						className=entry.getClassName() 
80						classPK=entry.getClassPK() 
81						isLayout=(className == "com.liferay.portal.kernel.model.Layout") 
82						assetEntry=(isLayout)?then(entry, assetEntryLocalService.getEntry(className, classPK)) 
83					/> 
84 
85					<div class="col-12"> 
86						<@customCard.renderCard configuration assetEntry /> 
87					</div> 
88                </#list> 
89            </#if> 
90        </div> 
91    </div> 
92 
93	<@utils.customPagination searchContainer /> 
94</div>