Detalle Contenido

处理模板时发生错误。
The following has evaluated to null or missing:
==> cur_img_grid.getAttribute("alt")  [in template "20095#20123#36528" at line 41, column 145]

----
Tip: If the failing expression is known to be 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: ${cur_img_grid.getAttribute("alt")}  [in template "20095#20123#36528" at line 41, column 143]
----
1<#assign 
2   assetCategoryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetCategoryLocalService") 
3JournalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService") 
4assetEntryService=serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryLocalService") 
5
6 
7<#assign contentId = .vars['reserved-article-id'].data> 
8<#assign ja = JournalArticleLocalService.getLatestArticle(themeDisplay.getScopeGroupId(), contentId)> 
9<#assign entry =assetEntryService.getEntry("com.liferay.journal.model.JournalArticle",ja.resourcePrimKey)/> 
10 
11 
12<#assign categories=assetCategoryLocalService.getAssetEntryAssetCategories(entry.entryId) 
13
14 
15 
16<div class="info-head-wrapper"> 
17	<div class="info-text"> 
18		<p class="info-text__pretitle"> 
19		 <#if categories?? > 
20	        <#list categories as cat> 
21	         ${cat.getName()}    
22	        </#list> 
23	    </#if> 
24		</p> 
25		<h2 class="info-text__title">${title.getData()}</h2> 
26		<p class="info-text__description">${entradilla.getData()}</p> 
27	</div> 
28	<#if img.getData()?? && img.getData() != ""> 
29	<img alt="${img.getAttribute("alt")}" data-fileentryid="${img.getAttribute("fileEntryId")}" src="${img.getData()}" /> 
30</#if> 
31	<div class="info-text__content"> 
32		${Contenido.getData()} 
33	</div> 
34	<div class="avance_gallery"> 
35	<#if img_grid?? && img_grid.getSiblings()?has_content> 
36		<ul class="gallery gallery--map">	 
37			<#list img_grid.getSiblings() as cur_img_grid> 
38							<li class="gallery-card gallery-card--map col-md-4 col-lg-3"> 
39								<a href="${cur_img_grid.getData()}" rel="gallery-maps" class="swipebox" data-selector="swipebox" title="${title.getData()}"> 
40								<div class="gallery-card-img"> 
41									<img class="gallery-card__image" src="${cur_img_grid.getData()}" alt="${cur_img_grid.getAttribute("alt")}"> 
42								</div> 
43								</a> 
44							</li> 
45			</#list> 
46		</ul> 
47    </#if> 
48	</div> 
49</div> 

Listado Noticias Blogs

Te podría interesar

Contacto

Contacta con nosotros

Te informaremos de todo y, si tienes dudas, las resolvemos.

Banner Mapa

Ubicación ideal

La ubicación del Residencial Avenida es ideal para familias que busquen una vida tranquila sin renunciar a los servicios de una gran ciudad.