Navegación por categorías

Publicador de contenidos

Se ha producido un error al procesar la plantilla.
The following has evaluated to null or missing:
==> currentCategory  [in template "30812#30846#41019" at line 67, column 76]

----
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: ${detailUrl.setParameter("categoryId"...  [in template "30812#30846#41019" at line 67, column 38]
----
1<#assign layoutLocalService = serviceLocator.findService("com.liferay.portal.kernel.service.LayoutLocalService") 
2         PortletURLFactoryUtil = staticUtil["com.liferay.portal.kernel.portlet.PortletURLFactoryUtil"] 
3         PortletRequest = staticUtil["javax.portlet.PortletRequest"] 
4         journalArticleService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService") 
5         ParamUtil = staticUtil["com.liferay.portal.kernel.util.ParamUtil"] 
6         categoryId =ParamUtil.getLong(renderRequest,"categoryId", 0) 
7         assetCategoryService =  serviceLocator.findService("com.liferay.asset.kernel.service.AssetCategoryLocalService") 
8         assetCategoriesCustomService = serviceLocator.findService("pa.mtl.assetcategories.customservice.api.AssetCategoriesCustomServiceApi") 
9         SAXReaderUtil = staticUtil["com.liferay.portal.kernel.xml.SAXReaderUtil"] 
10          HtmlUtil = staticUtil["com.liferay.portal.kernel.util.HtmlUtil"] 
11        /> 
12 
13<#if (categoryId > 0) > 
14	<#assign currentCategory = assetCategoryService.getAssetCategory(categoryId) 
15		     categoryName = currentCategory.getTitle(locale) 
16		     brotherCategories = assetCategoriesCustomService.getChildCategoriesOrdered(currentCategory.getParentCategoryId(),locale)/> 
17<#else> 
18	<#assign categoryName = ""/> 
19</#if> 
20 
21<div class="fichas-page">	 
22	<div class="card flex-md-row mb-4 box-shadow h-md-250"> 
23  		<div class="card-body d-flex flex-column align-items-start">                      
24      		<h2 class="mb-0">${categoryName}</h2>	 
25      		 
26      		<#if brotherCategories?has_content> 
27      			<div class="fichas-introduccion"> 
28      				<dl class="category ftl"> 
29      					<dt><@liferay.language key="general.categories" />: </dt> 
30      					 
31		      			<#list  brotherCategories as aCategory>   
32		      					<#assign urlDetail = renderResponse.createRenderURL()/>	 
33		      					${urlDetail.setParameter("categoryId", aCategory.getCategoryId()+"")} 
34		      					 
35		      					<#if currentCategory.getCategoryId() != aCategory.getCategoryId()> 
36		      						<dd><a href="${urlDetail}">${aCategory.getTitle(locale)}</a><#if !aCategory?is_last>,</#if></dd> 
37		      					<#else> 
38		      						<dd>${aCategory.getTitle(locale)}<#if !aCategory?is_last>,</#if></dd> 
39		      					</#if> 
40		      			</#list> 
41      			 
42      				</dl> 
43      			</div> 
44      		</#if> 
45      		 
46      		 
47			<#if entries?has_content> 
48				<ul>         
49			    	<#list entries as curEntry>  	 
50					    <#if curEntry?has_content> 
51				        <#assign journalArticle = journalArticleService.fetchLatestArticle(curEntry.getClassPK()) 
52				        		 document = SAXReaderUtil.read(journalArticle.getContentByLocale(locale))/> 
53				        
54				       <#if  document.selectSingleNode("/root/dynamic-element[@name='fichero']/dynamic-content") ? has_content> 
55							<#assign resumen = "" 
56				     		 currentUrl = renderResponse.createRenderURL() 
57		                 	 detailPage = "detalle" 
58                             layoutDetail = layoutLocalService.getFriendlyURLLayout(themeDisplay.getScopeGroupId(), false, "/"+detailPage) 
59                 		  	 detailUrl = PortletURLFactoryUtil.create(request, "com_liferay_asset_categories_navigation_web_portlet_AssetCategoriesNavigationPortlet", layoutDetail.getPlid(), PortletRequest.RENDER_PHASE) 
60                 		     /> 
61                 		      
62                 		      <#if  document.selectSingleNode("/root/dynamic-element[@name='resumen']/dynamic-content") ? has_content> 
63                 		      	<#assign resumenNode = document.selectSingleNode("/root/dynamic-element[@name='resumen']/dynamic-content") 
64				         	 			 resumen = resumenNode.getText()/> 
65                 		      </#if>			 
66		                      
67		                     ${detailUrl.setParameter("categoryId",currentCategory.getCategoryId()+"")} 
68		                     ${detailUrl.setParameter("articleId", journalArticle.getArticleId())} 
69		                     ${currentUrl.setParameter("categoryId",currentCategory.getCategoryId()+"")} 
70		                      
71		                     <li> 
72		                     	<div class="resumen-contenido"> 
73		                     		<h3 class="title"> 
74		                     			<a title="${curEntry.getTitle(locale)}"  
75		        							href="${detailUrl}&articleId=${journalArticle.getArticleId()}&title=${HtmlUtil.escapeURL(curEntry.getTitle(locale))}&redirect=${HtmlUtil.escapeURL(currentUrl)}">${curEntry.getTitle(locale)}</a> 
76				  					</h3> 
77				  					<div class="summary"> 
78				  						${resumen} 
79				  					</div> 
80				  					 <div class="link-more"> 
81							        	<a class="more-information"  
82							        		title="${languageUtil.get(locale,"general.more-info")} ${curEntry.getTitle(locale)}"  
83							        		href="${detailUrl}&articleId=${journalArticle.getArticleId()}&title=${HtmlUtil.escapeURL(curEntry.getTitle(locale))}&redirect=${HtmlUtil.escapeURL(currentUrl)}">${languageUtil.get(locale,"general.more-info")}</a> 
84									  </div> 
85		                     	</div> 
86		                    </li> 
87		                      
88				       <#else> 
89				      		<#assign  entryContent = journalArticleService.getArticleContent(journalArticle, "","VIEW", locale, themeDisplay)/> 
90				      		<li>${entryContent}</li> 
91				       </#if> 
92				        </#if>    		 
93			    	</#list> 
94				</ul>     
95			</#if> 
96		</div> 
97	</div>	 
98</div> 

Publicador de contenidos

VENTANILLA DESAHUCIOS

Orientación medidas y ayuda para los afectados