Home

teste

Outros

21 de Agosto de 2023

teste
Um erro ocorreu enquanto processava o modelo.
The following has evaluated to null or missing:
==> ContentHelper.getStructureContentByName(jArticle.getArticleId(), themeDisplay.getScopeGroupId(), "lblBotao")  [in template "20097#20123#5560107" at line 22, column 52]

----
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: lblBotao = ContentHelper.getStructure...  [in template "20097#20123#5560107" at line 22, column 41]
----
1<#assign ContentHelper = serviceLocator.findService("br.com.gndi.institucional.search.content.helper.ContentHelper")> 
2 
3<#if entries?has_content> 
4<div class="areaCardSolucao"> 
5    <h2>Soluções para <b>você</b>, sua <b>empresa</b> ou <b>familia</b></h2> 
6       <div class="row"> 
7    		<#list entries as curEntry> 
8    		    <#assign 
9    					assetRenderer=curEntry.getAssetRenderer() 
10    					serviceContext = staticUtil["com.liferay.portal.kernel.service.ServiceContextThreadLocal"].getServiceContext() 
11    					dlAppLocalServiceUtil = staticUtil["com.liferay.document.library.kernel.service.DLAppLocalServiceUtil"] 
12    					dlUtil = staticUtil["com.liferay.document.library.kernel.util.DLUtil"] 
13    					themeDisplay = serviceContext.getThemeDisplay() 
14    				/> 
15    				 
16    				 
17    				 
18    			<#if assetRenderer.getClassName()=="com.liferay.journal.model.JournalArticle"> 
19    				 
20    				<#assign  
21    					jArticle = assetRenderer.getArticle() 
22    					lblBotao = ContentHelper.getStructureContentByName(jArticle.getArticleId(), themeDisplay.getScopeGroupId(), "lblBotao") 
23    					image = ContentHelper.getStructureContentByName(jArticle.getArticleId(), themeDisplay.getScopeGroupId(), "imagemCard") 
24    					imageJson = jsonFactoryUtil.createJSONObject(image) 
25    					imageURL = ContentHelper.getImageURL(imageJson.uuid, themeDisplay.getScopeGroupId()) 
26    					link = ContentHelper.getStructureContentByName(jArticle.getArticleId(), themeDisplay.getScopeGroupId(), "link")/> 
27    					 
28    					                    
29                        <#assign titleAcessibilidade = ContentHelper.getStructureContentByName(jArticle.getArticleId(), themeDisplay.getScopeGroupId(), "tituloAcess")/>  
30                    
31                    <#if imageJson?has_content && imageJson.alt?has_content> 
32                        <#assign description = imageJson.alt> 
33                    <#else> 
34                        <#assign description = "sem descrição textual"> 
35                    </#if> 
36              
37                  <div class="col-12 col-md-6 mb-4"> 
38                    <div class="card_solucao"> 
39                      <a class="englobado" href="${link}" title="${titleAcessibilidade}"> 
40                        <div class="blocotext"> 
41                          <p class="d-block d-md-none">Plano de saúde</p> 
42                          <div class="btn_solucao" tabindex="0" aria-label="${lblBotao}"> ${lblBotao}</div> 
43                        </div> 
44                    <img loading="lazy" class="w-100 img-fluid" src="${imageURL}" alt="${description}"></a>           
45                    </div> 
46                  </div> 
47 
48    			</#if> 
49    		</#list> 
50        </div> 
51	</div> 
52</#if> 
53 
54<style> 
55 
56    .areaCardSolucao .card_solucao img { 
57    height: 100%; 
58    object-fit: cover; 
59
60    .areaCardSolucao h2{ 
61        color: #000; 
62    font-family: "oxygen-regular" !important; 
63    margin: 30px 0; 
64
65    .areaCardSolucao .card_solucao{ 
66        position: relative; 
67        margin-bottom:30px !important; 
68        border-radius:8px; 
69        max-height: 380px; 
70        height:100%; 
71        box-shadow: 0px 0px 9px rgba(128, 128, 128, 0.6); 
72}    
73    .areaCardSolucao .card_solucao a.englobado{ 
74        width: 100%; 
75    max-height: 380px; 
76    height: 100%; 
77    display: inline-block; 
78    overflow: hidden; 
79    border-radius: 8px; 
80
81    .areaCardSolucao .card_solucao .blocotext {    
82    position: absolute; 
83    left: 50%;     
84    bottom: 24px;    
85        max-width:280px; 
86        width:100%; 
87    transform: translateX(-50%);       
88
89    .areaCardSolucao .card_solucao .blocotext .btn_solucao { 
90    background-color: #fff; 
91    border-radius: 8px;    
92    padding: 10px 30px; 
93    text-align: center; 
94    color: #EC6E0C; 
95    font-weight: bold; 
96    display: block; 
97        text-decoration:none; 
98
99    @media screen and (max-width:768px){ 
100        .areaCardSolucao .card_solucao{ 
101            overflow: hidden; 
102        max-height: 251px; 
103            max-width:327px; 
104
105        .areaCardSolucao .card_solucao a:focus-visible{ 
106            outline:auto; 
107            outline-color: #fd7e14!important; 
108            outline-width: 2px; 
109
110        .areaCardSolucao .card_solucao .blocotext {    
111    position: absolute; 
112    left: 20px;     
113    bottom: 24px;    
114        max-width:280px; 
115        width:100%;    
116        transform: translateX(0%);  
117
118        .areaCardSolucao .card_solucao .blocotext p{ 
119            color: #fff; 
120        font-size: 24px; 
121        font-weight: bold; 
122        margin: 7px 0; 
123
124        .areaCardSolucao .card_solucao .blocotext .btn_solucao{ 
125            background-color: transparent;           
126        padding: 0;     
127        color: #F49E00;    
128        text-align: left; 
129            display:inline; 
130            text-decoration: underline; 
131        font-weight: 500; 
132
133
134    @media screen and (max-width:500px){ 
135        .areaCardSolucao h2{ 
136        font-size:1.5rem; 
137
138
139</style> 

Explore mais categorias