Nav Bar do usuário deslogado.

Ofertas

Cromatografia APC/GPC

An error occurred while processing the template.
For "." left-hand operand: Expected a hash, but this has evaluated to a string (wrapper: f.t.SimpleScalar):
==> journalArticle  [in template "34764#34807#null" at line 19, column 54]

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