Conheça:

Navegação por Categorias

Pensão Gonçalves

Localizado na Cidade da Calheta, em Achada Batalha, Pensão Gonçalves é um alojamento moderno, inaugurado em março de 2024.

Dispõe de 10 quartos modernos, equipados e com alto padrão de qualidade.

Ocorreu um erro ao processar o template.
The following has evaluated to null or missing:
==> categories[0]  [in template "20097#20123#413611" at line 36, column 76]

----
Tip: It's the final [] step that caused this error, not those before it.
----
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: #assign related = AssetHelper.getArti...  [in template "20097#20123#413611" at line 36, column 17]
----
1<#assign AssetHelper = serviceLocator.findService( "com.nosi.api.AssetHelper") /> 
2<#assign AssetCategoryLocalService = serviceLocator.findService( "com.liferay.asset.kernel.service.AssetCategoryLocalService") /> 
3<#assign JournalArticleLocalService = serviceLocator.findService( "com.liferay.journal.service.JournalArticleLocalService") /> 
4<#assign journalArticle = JournalArticleLocalService.getArticle( getterUtil.getLong(groupId), .vars['reserved-article-id'].data ) /> 
5 
6<#assign categories = AssetCategoryLocalService.getCategories( "com.liferay.journal.model.JournalArticle", journalArticle.getResourcePrimKey()) /> 
7 
8<style> 
9	.app-interests-card .interest-card { 
10		background: #FFFFFF; 
11		box-shadow: 0.357956px 3.75276px 20.2765px rgba(73, 75, 78, 0.3); 
12		border-radius: 7px; 
13		cursor: pointer; 
14
15	.app-interests-card .interest-card .title { 
16		font-weight: 500; 
17		font-size: 14px; 
18		line-height: 20px; 
19		text-decoration: none; 
20		/*min-height:30px;*/ 
21		transition: color 0.35s; 
22
23	.app-interests-card .interest-card:hover .title { 
24		color: var(--gray-1) !important; 
25
26	.app-interests-card .interest-card .category { 
27		font-weight: 400; 
28		font-size: 10.3923px; 
29
30	.app-interests-card .interest-card .arrow { 
31	margin-top: -5px; 
32		color: var(--gray-1); 
33
34</style> 
35<div class="row services-results app-interests-card"> 
36		<#assign related = AssetHelper.getArticlesFromCategories( [categories[0].categoryId?number] )/> 
37		 
38		<#list related as rel> 
39			<#if rel.getClassPK() != journalArticle.resourcePrimKey> 
40				<#assign  
41					item = AssetHelper.config(rel, locale)  
42					categoriesArray = item.getCategoriesText()?split(',')	 
43					images = item.getNodes("Image77837523") 
44					icon = "gray-1" 
45					slug = item.getArticleSlug(themeDisplay) 
46				/> 
47				<div class="col-md-6 interests-item mb-4" info="" categories="${rel.getCategoryIds()?join(',') }" info="${rel.getClassPK()}"> 
48					<a  
49						href="/w/${slug}?group=${categoriesArray[0]}"  
50						class="w-100 h-100 interest-card d-flex align-items-center text-reset text-decoration-none position-relative" 
51						style="padding-left:140px;min-height:100px;" 
52
53						<#if images?size &gt; 0 > 
54							<img  
55									 class="" 
56									 src="${images[0].getImageSrc('Image77837523')}"  
57									 style="height:100%; width:140px; object-fit:cover;position:absolute;top:0;left:0;border-radius:7px 0px 0px 7px;" 
58							/> 
59						</#if> 
60						<div class="d-flex flex-column py-3 pl-4" > 
61							<div class="title text-gray-2 d-block" > 
62								${item.getTitle()} 
63							</div> 
64							<div class="category mt-1 small summary d-none"> 
65								${item.getSummary()} 
66							</div> 
67						</div> 
68						<div class="arrow ml-auto px-2 pr-4"> 
69								<i class="fas fa-arrow-right"></i> 
70							</div> 
71					</a> 
72				</div> 
73			</#if> 
74		</#list> 
75</div> 
76 
77<script> 
78	(function(){ 
79		const id = $('.slider-info-lugar').attr('id'); 
80		if(id){ 
81			console.log(id); 
82			 
83
84		 
85	})(); 
86</script>