Nav Bar do usuário deslogado.

Demandas

Teste de demanda mobile

Um erro ocorreu enquanto processava o modelo.
The following has evaluated to null or missing:
==> Text97565506  [in template "34764#34807#null" at line 68, column 30]

----
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 Text97565506.getData()?trim != ""  [in template "34764#34807#null" at line 68, column 25]
----
1<#assign 
2	MBMessageLocalService = serviceLocator.findService("com.liferay.message.boards.service.MBMessageLocalService") 
3	JournalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService") 
4	UserLocalService = serviceLocator.findService("com.liferay.portal.kernel.service.UserLocalService") 
5	AssetEntryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryLocalService") 
6		tagsLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetTagLocalService") 
7	OrganizationLocalService = serviceLocator.findService("com.liferay.portal.kernel.service.OrganizationLocalService") 
8
9<#assign 
10		autorLink = "Anônimo" 
11		publishDate = "01/01/2023" 
12		commentsCount = "0" 
13		urlWC = "" 
14
15<#assign  
16	pageUrl = displayPageURL.getData()!"" 
17	urlTitle = pageUrl?split("/")[4]?split("?")[0] 
18	journalArticle = JournalArticleLocalService.fetchArticleByUrlTitle(groupId?number, urlTitle)!"" 
19	assetEntry = AssetEntryLocalService.getEntry(journalArticle.getModelClassName(), journalArticle.getResourcePrimKey()) 
20	autorId = DDMStructure_Text01692991.getData()!"" 
21
22 
23<#if journalArticle != ""> 
24		<#assign 
25			autorId = DDMStructure_Text01692991.getData()?trim 
26			publishDate = journalArticle.getDisplayDate()?string('dd/MM/yyyy') 
27			commentsCount = MBMessageLocalService.getDiscussionMessagesCount(assetEntry.getClassName(), assetEntry.getClassPK(), 0)!"0" 
28
29		<#if autorId != "" > 
30			<#if UserLocalService.fetchUser(autorId?number)?? > 
31				<#assign  
32					autorUser = UserLocalService.fetchUser(autorId?number)  
33					autorUserWcId = autorUser.getExpandoBridge().getAttribute("journal-article")!"" 
34
35				<#if JournalArticleLocalService.fetchLatestArticle(themeDisplay.getLayout().getGroupId()?number, autorUserWcId?string, -1)?? > 
36					<#assign autorWc = JournalArticleLocalService.fetchLatestArticle(themeDisplay.getLayout().getGroupId()?number, autorUserWcId?string, -1) > 
37					<#assign urlWC = autorWc.getUrlTitle()!""> 
38					<#assign autorLink = autorUser.getFullName()!""> 
39				</#if> 
40			</#if> 
41		</#if> 
42</#if> 
43 
44	<#assign tags = tagsLocalService.getTagNames("com.liferay.journal.model.JournalArticle", journalArticle.getResourcePrimKey()?number )  
45				 tagName = tags[0]!"" 
46
47				  
48				<#if tagName?contains("organization") && tagName != "" > 
49 
50					<#assign 
51					orgId = tagName?keep_after("organization-")				 
52					organization =  OrganizationLocalService.fetchOrganization(orgId?number)!"" 
53
54								 
55					<#if organization != "" && autorId != ""> 
56						<#assign	orgArticleId = organization.getExpandoBridge().getAttribute("journal-article") 
57							orgJournalArticle = JournalArticleLocalService.getArticle(themeDisplay.getLayout().getGroupId(),orgArticleId?c)  
58							urlWC = orgJournalArticle.getUrlTitle()!"" 
59							autorLink = organization.getName()!"" 
60
61					</#if> 
62				</#if> 
63 
64<div id="submissãoContainer" class="container my-sm-5"> 
65 
66	<div class="row mt-sm-5"> 
67		<div class="col-sm-5 col-xm-12"> 
68			<#if Text97565506.getData()?trim != ""> 
69				<div> 
70					<img src="${Text97565506.getData()}" class="bioec_base64-img" /> 
71				</div> 
72			<#else>	 
73				<div class="bioec_infra_img_placeholder"> 
74					<i class="fa-solid fa-image"></i> 
75					sem imagem 
76				</div> 
77			</#if> 
78		</div> 
79		<div class="col-sm-7 col-xm-12 bioec_text-content"> 
80			<div class="mb-5"><!-- Descrição: <br/> --> 
81				${DDMStructure_CopyOfCopyOfText35133162.getData()} 
82			</div> 
83			<#if DDMStructure_Text79240879.getData()?trim != ""> 
84				<div>Nome para contato: ${DDMStructure_Text79240879.getData()}</div> 
85			</#if> 
86			<#if DDMStructure_Text73631523.getData()?trim != ""> 
87				<div>Email para contato: ${DDMStructure_Text73631523.getData()}</div> 
88			</#if> 
89			<#if DDMStructure_Text17580447.getData()?trim != ""> 
90				<div>Telefone para contato: ${DDMStructure_Text17580447.getData()}</div> 
91			</#if> 
92		</div> 
93	</div> 
94	 
95		<div class="bioec_info-text"> 
96			<div>${publishDate} | ${commentsCount} comentários</div><span id="traçoDesk"> | </span><div> Publicado por <#if urlWC != ''><a href="/w/${urlWC}"></#if>${autorLink}<#if urlWC != ''></a></#if></div> 
97		</div> 
98</div> 
99 
100<style> 
101 
102.bioec_info-text a{ 
103    color: #5B5C61; 
104		text-decoration: underline; 
105
106 
107.bioec_info-text a:hover{ 
108    color: #5B5C61; 
109		text-decoration: underline; 
110
111 
112.mx-5vw { 
113	margin: 0 5vw; 
114
115 
116.bioec_text-content { 
117	font-style: normal; 
118	font-weight: 400; 
119	font-size: 16px; 
120	line-height: 150%; 
121	color: #5B5C61; 
122margin-bottom: 44px; 
123
124 
125.bioec_base64-img { 
126	margin: 0 auto; 
127	max-height: 400px; 
128	display: block; 
129
130 
131.bioec_info-text {  
132	padding-top: 12px; 
133	font-size: 14px; 
134	font-weight: 300; 
135	color: #5B5C61; 
136	text-align: center; 
137	border-top: solid 1px #E8ECEF; 
138border-bottom: solid 1px #E8ECEF; 
139
140 
141.bioec_info-text a { 
142	color: inherit; 
143
144 
145.bioec_infra_img_placeholder { 
146    width: 140px; 
147    height: 140px; 
148    background-color: #E8ECEF; 
149    display: flex; 
150    flex-direction: column; 
151    align-items: center; 
152    justify-content: center; 
153    font-size: 14px; 
154    color: #5B5C61; 
155		margin: 0 auto; 
156
157 
158.bioec_infra_img_placeholder i { 
159    font-size: 44px; 
160
161 
162.bioec_info-text{ 
163display: flex; 
164flex-direction: row; 
165gap: 4px; 
166
167 
168 @media (max-width: 576px) { 
169  
170   
171 #submissãoContainer{ 
172margin-top: 40px; 
173
174  
175#submissãoContainer .row{ 
176gap: 40px; 
177
178#traçoDesk{ 
179display: none; 
180
181.bioec_info-text{ 
182flex-direction: column; 
183align-items: center; 
184padding: 12px 0; 
185
186.bioec_infra_img_placeholder{ 
187display: none; 
188
189
190 
191</style> 
Comentários