Categories Navigation

Se ha producido un error al procesar la plantilla.
Java method "com.sun.proxy.$Proxy68.getAssetCategory(long)" threw an exception when invoked on com.sun.proxy.$Proxy68 object "com.liferay.asset.categories.internal.service.AssetCategoryPropertyAssetCategoryLocalServiceWrapper@7fbcb258"; see cause exception in the Java stack trace.

----
FTL stack trace ("~" means nesting-related):
	- Failed at: category = assetCategoryService.getAs...  [in template "217051#217099#573551" at line 45, column 22]
	- Reached through: #assign-container  [in template "217051#217099#573551" at line 45, column 13]
----
1<#assign assetCategoryService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetCategoryLocalService") 
2		 assetCategoryPropertyService =  serviceLocator.findService("com.liferay.asset.category.property.service.AssetCategoryPropertyLocalService") 
3		 SAXReaderUtil = staticUtil["com.liferay.portal.kernel.xml.SAXReaderUtil"] 
4		 HtmlUtil = staticUtil["com.liferay.portal.kernel.util.HtmlUtil"] 
5		 layoutLocalService = serviceLocator.findService("com.liferay.portal.kernel.service.LayoutLocalService") 
6		 PortletURLFactoryUtil = staticUtil["com.liferay.portal.kernel.portlet.PortletURLFactoryUtil"] 
7		 PortletRequest = staticUtil["javax.portlet.PortletRequest"]     
8		 journalArticleService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService")   
9		 ParamUtil = staticUtil["com.liferay.portal.kernel.util.ParamUtil"]             
10         categoryId =ParamUtil.getLong(renderRequest,"categoryId", 0) 
11         maxLoop = 100 
12/> 
13 
14<#if (categoryId <= 0) > 
15     
16    <#if entries?has_content> 
17		<#foreach aCategory in entries?first.getCategories()> 
18			<#assign aCategory = aCategory/> 
19			<#break> 
20		</#foreach> 
21		<#list 1..maxLoop as i> 
22			<#list 1..maxLoop as j> 
23				<#if aCategory.getParentCategory()?has_content> 
24					<#assign aCategory = aCategory.getParentCategory()/> 
25				<#else> 
26					<#assign categoryId = aCategory.getCategoryId()/> 
27			   </#if>   
28			   <#break> 
29			</#list> 
30			<#if (categoryId > 0) > 
31				<#break> 
32			</#if> 
33		</#list> 
34	 </#if> 
35     
36</#if> 
37 
38<nav aria-label="breadcrumb"> 
39    <ol class="breadcrumb"> 
40        <li class="breadcrumb-title"><span>${languageUtil.get(locale,"webasturias.breadcrumb-title")}</span></li> 
41        <#--<li class="breadcrumb-item"><a href="/">${languageUtil.get(locale,"webasturias.breadcrumb-asturias")}</a></li>--> 
42         
43        <#if (categoryId > 0) > 
44 
45            <#assign category = assetCategoryService.getAssetCategory(categoryId) 
46            		 breadCrumbContent = "" 
47            		 categoryAncestors = category.getAncestors()/> 
48                      
49            <#if categoryAncestors?has_content> 
50                <#foreach categoryAncestor in categoryAncestors> 
51                 
52                    <#assign detailPage = "general" 
53							 layoutDetail = layoutLocalService.getFriendlyURLLayout(themeDisplay.getScopeGroupId(), false, "/"+detailPage) /> 
54							            	 		  
55		    		<#-- obtener el contenido de la categoría hija --> 
56		    		<#assign contentId = (assetCategoryPropertyService.fetchCategoryProperty(categoryAncestor.getCategoryId(), "idContenido").getValue())!""/> 
57					<#if contentId ? has_content>                     
58                   		<#assign journalArticleSub = journalArticleService.getLatestArticle(groupId,contentId)/> 
59                                     
60                        <#if journalArticleSub?has_content> 
61                                <#-- obtener el contenido de la categoría actual -->                                          
62                                <#assign document = SAXReaderUtil.read(journalArticleSub.getContentByLocale(locale)) 
63                                         paginaDetalleNode =  document.selectSingleNode("/root/dynamic-element[@name='paginaDetalle']/dynamic-content") 
64                                /> 
65                                         
66                                <#if document.selectSingleNode("/root/dynamic-element[@name='visibleMigas']/dynamic-content")?has_content> 
67                        		 	<#assign visibleMigasNode =  document.selectSingleNode("/root/dynamic-element[@name='visibleMigas']/dynamic-content")  
68                        		 		visibleMigas =  visibleMigasNode.getText() 
69                        		 			 hideCategory = visibleMigas != "1"/> 
70                        		</#if>          
71                                         
72                                <#if paginaDetalleNode?has_content && paginaDetalleNode.getText()?has_content> 
73				        			<#assign  pageDetail = paginaDetalleNode.getText()/> 
74				        			<#if (pageDetail?index_of("@")>0)> 
75				                		<#assign pageDetailPosition = (pageDetail?index_of("@")-1) 
76		                         					 pageDetail = pageDetail[0..pageDetailPosition] 
77		                          					 layoutDetail = layoutLocalService.getLayout(themeDisplay.getScopeGroupId(),false,pageDetail?number) 
78				                      	/>				                      	 
79				                     </#if> 
80								</#if>           
81                          </#if> 
82                    </#if> 
83		    		<#assign categoryUrl = PortletURLFactoryUtil.create(request, "com_liferay_asset_categories_navigation_web_portlet_AssetCategoriesNavigationPortlet", layoutDetail.getPlid(), PortletRequest.RENDER_PHASE)/> 
84		    		${categoryUrl.setParameter("categoryId",categoryAncestor.getCategoryId()+"")} 
85				    		 
86                	<#if !(hideCategory?has_content && hideCategory)> 
87	                	<#if categoryAncestor.isRootCategory()> 
88	                		<#assign breadCrumbContent = "<li class='breadcrumb-item'><a href='"+categoryUrl+"'>"+languageUtil.get(locale,"webasturias.breadcrumb-portal")+" </a> </li>"+breadCrumbContent/> 
89	                	<#else> 
90	                    	<#assign breadCrumbContent = "<li class='breadcrumb-item'><a href='"+categoryUrl+"'>"+categoryAncestor.getTitle(locale)+" </a> </li>"+breadCrumbContent/> 
91	                    </#if> 
92                 	</#if> 
93                </#foreach> 
94                 
95                ${breadCrumbContent} 
96                 
97            </#if> 
98            <#assign hideCategory = false/> 
99            <li class="breadcrumb-item active">${category.getTitle(locale)}</li> 
100        </#if> 
101    </ol> 
102</nav> 
103 
104<script type="text/javascript"> 
105	$( document ).ready(function() { 
106		 if(typeof ga !== "undefined") { 
107		 <#if category ? has_content> 
108		 	var pageName = '${category.getName()}'; 
109		 <#else> 
110		 	var pageName = location.pathname; 
111		 </#if> 
112			     ga( 'send', 'pageview', { 
113				    'page': pageName, 
114				    'title': pageName 
115				} ); 
116
117	}); 
118</script> 

Categories Navigation

Se ha producido un error al procesar la plantilla.
Java method "com.sun.proxy.$Proxy68.getAssetCategory(long)" threw an exception when invoked on com.sun.proxy.$Proxy68 object "com.liferay.asset.categories.internal.service.AssetCategoryPropertyAssetCategoryLocalServiceWrapper@7fbcb258"; see cause exception in the Java stack trace.

----
FTL stack trace ("~" means nesting-related):
	- Failed at: currentCategory = assetCategoryServic...  [in template "217051#217099#573566" at line 15, column 18]
	- Reached through: #assign-container  [in template "217051#217099#573566" at line 15, column 9]
----
1<#assign assetCategoriesCustomService = serviceLocator.findService("pa.mtl.assetcategories.service.api.AssetCategoriesServiceApi") 
2		 assetCategoryService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetCategoryLocalService") 
3		 assetCategoryPropertyService =  serviceLocator.findService("com.liferay.asset.category.property.service.AssetCategoryPropertyLocalService") 
4		 SAXReaderUtil = staticUtil["com.liferay.portal.kernel.xml.SAXReaderUtil"] 
5		 HtmlUtil = staticUtil["com.liferay.portal.kernel.util.HtmlUtil"] 
6		 layoutLocalService = serviceLocator.findService("com.liferay.portal.kernel.service.LayoutLocalService") 
7		 PortletURLFactoryUtil = staticUtil["com.liferay.portal.kernel.portlet.PortletURLFactoryUtil"] 
8		 PortletRequest = staticUtil["javax.portlet.PortletRequest"]     
9		 journalArticleService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService")   
10		 ParamUtil = staticUtil["com.liferay.portal.kernel.util.ParamUtil"]   
11 		 categoryId =ParamUtil.getLong(renderRequest,"categoryId", 0) 
12/> 
13 
14<#if (categoryId > 0) > 
15	<#assign currentCategory = assetCategoryService.getAssetCategory(categoryId) 
16			 childCategories = assetCategoriesCustomService.getChildCategoriesOrdered(categoryId,locale) 
17			 showContents = true 
18			 forceShowCategories = false 
19	/> 
20 
21	<#assign structureArticulo = assetCategoriesCustomService.getJournalStructureByKey(groupId, "STR_ARTICULO") />  
22 
23	<#-- Pintar subcategorías --> 
24	<#if childCategories?has_content>	 
25		<div class="card flex-md-row mb-4 box-shadow h-md-250"> 
26			<div class="card-body d-flex flex-column align-items-start navegacion-caracteristica"> 
27				${portalUtil.setPageTitle(currentCategory.getTitle(locale), request)} 
28				<h2 class="mb-0">${currentCategory.getTitle(locale)}</h2>   
29				<div class="outer">  
30					<#assign childCategoriesList = []/>        			 
31					<#list childCategories as childCategory>	 
32						<#assign contentId = (assetCategoryPropertyService.fetchCategoryProperty(childCategory.getCategoryId(), "idContenido").getValue())!""/> 
33						<#if contentId ? has_content>	  
34							<#assign journalArticleSub = journalArticleService.getLatestArticle(groupId,contentId)/> 
35							<#assign document = SAXReaderUtil.read(journalArticleSub.getContentByLocale(locale))/> 
36							<#if document.selectSingleNode("/root/dynamic-element[@name='visibleNavegacion']/dynamic-content")?has_content> 
37								<#assign visibleNavegacionNode =  document.selectSingleNode("/root/dynamic-element[@name='visibleNavegacion']/dynamic-content")  
38									visibleNavegacion =  visibleNavegacionNode.getText() 
39										 hideCategory = visibleNavegacion != "1"/> 
40							</#if> 
41							<#if !(hideCategory?has_content && hideCategory)>	 
42								<#assign childCategoriesList = childCategoriesList + [childCategory] /> 
43							</#if> 
44						</#if>                
45					</#list> 
46					  
47					<div class="row with-margin"> 
48						<#assign contentId = (assetCategoryPropertyService.fetchCategoryProperty(currentCategory.getCategoryId(), "idContenido").getValue())!""/> 
49						<#if contentId ? has_content>       				 
50							<#assign journalArticle = journalArticleService.getLatestArticle(groupId,contentId)/> 
51							<#assign currentCategoryContent = journalArticleService.getArticleContent(journalArticle, "TPL_CATEGORIA_IMG_CARACT","VIEW", locale, themeDisplay)/> 
52							<div class="col-md-5"> 
53								${currentCategoryContent}		              			 
54							</div> 
55							<div class="col-md-7">  
56						<#else> 
57							<div class="col-md-12">   
58						</#if> 
59										   
60						 <#list childCategoriesList[0..1] as childCategory>	 
61							<#assign contentId = (assetCategoryPropertyService.fetchCategoryProperty(childCategory.getCategoryId(), "idContenido").getValue())!""/> 
62							<#if contentId ? has_content> 
63								 <#assign journalArticleSub = journalArticleService.getLatestArticle(groupId,contentId)/> 
64								 
65								<#assign document = SAXReaderUtil.read(journalArticleSub.getContentByLocale(locale)) 
66									paginaDetalleNode =  document.selectSingleNode("/root/dynamic-element[@name='paginaDetalle']/dynamic-content") 
67									descripcion = "" 
68									texto="" 
69								/> 
70								<#assign textoNode = document.selectSingleNode("/root/dynamic-element[@name='texto']/dynamic-content") 
71									 texto = textoNode.getText() 
72								/> 
73								<#assign descripcionNode = document.selectSingleNode("/root/dynamic-element[@name='descripcion']/dynamic-content") 
74									 descripcion = descripcionNode.getText() 
75								/> 
76								<#if paginaDetalleNode?has_content && paginaDetalleNode.getText()?has_content> 
77									<#assign  pageDetail = paginaDetalleNode.getText()/> 
78									<#if (pageDetail?index_of("@")>0)> 
79										<#assign pageDetailPosition = (pageDetail?index_of("@")-1) 
80											pageDetail = pageDetail[0..pageDetailPosition] 
81											layoutDetail = layoutLocalService.getLayout(themeDisplay.getScopeGroupId(),false,pageDetail?number)					                          					  
82										/> 
83									</#if> 
84								<#else> 
85									<#assign detailPage = "caracteristica" 
86											 layoutDetail = layoutLocalService.getFriendlyURLLayout(themeDisplay.getScopeGroupId(), false, "/"+detailPage) /> 
87								</#if>									 
88																  
89								<#assign categoryUrl = PortletURLFactoryUtil.create(request, "com_liferay_asset_categories_navigation_web_portlet_AssetCategoriesNavigationPortlet", layoutDetail.getPlid(), PortletRequest.RENDER_PHASE)/> 
90								${categoryUrl.setParameter("categoryId", childCategory.getCategoryId()+"")}								 
91																	 
92								<#if journalArticleSub?has_content> 
93									<div class="col-md-12">	  
94										<h3 class="title">${texto}</h3> 
95										<div class="col-content">  
96											<div class="col-summary without-icon">                                  
97												${descripcion} 
98											</div> 
99										</div>	                               		 
100										<div class="link-more"> 
101											<a class="more-information" title="${languageUtil.get(locale,'webasturias.general.more-info-about')} ${childCategory.getTitle(locale)}" 
102												href="${categoryUrl}" >${languageUtil.get(locale,'webasturias.general.more-info')} </a> 
103										</div>	                               				                               				 
104									</div> 
105								</#if>	 
106							</#if>		 
107						</#list> 
108					</div>	</div> 
109					 
110					<div class="row">   
111						<#if childCategoriesList?size gt 2>              		 
112							<#list childCategoriesList[2..childCategoriesList?size-1] as childCategory>    
113								<#assign contentId = (assetCategoryPropertyService.fetchCategoryProperty(childCategory.getCategoryId(), "idContenido").getValue())!""/> 
114								<#if contentId ? has_content> 
115									<#assign journalArticleSub = journalArticleService.getLatestArticle(groupId,contentId)/> 
116									 
117									<#assign document = SAXReaderUtil.read(journalArticleSub.getContentByLocale(locale)) 
118											 paginaDetalleNode =  document.selectSingleNode("/root/dynamic-element[@name='paginaDetalle']/dynamic-content") 
119											 descripcion="" 
120											 texto="" 
121									/> 
122									<#assign textoNode = document.selectSingleNode("/root/dynamic-element[@name='texto']/dynamic-content") 
123										 texto = textoNode.getText() 
124									/> 
125									<#assign descripcionNode = document.selectSingleNode("/root/dynamic-element[@name='descripcion']/dynamic-content") 
126										 descripcion = descripcionNode.getText() 
127									/> 
128									<#if paginaDetalleNode?has_content && paginaDetalleNode.getText()?has_content> 
129										<#assign  pageDetail = paginaDetalleNode.getText()/> 
130										<#if (pageDetail?index_of("@")>0)> 
131											<#assign pageDetailPosition = (pageDetail?index_of("@")-1) 
132												pageDetail = pageDetail[0..pageDetailPosition] 
133												layoutDetail = layoutLocalService.getLayout(themeDisplay.getScopeGroupId(),false,pageDetail?number)					                          					  
134											/> 
135										</#if> 
136									<#else> 
137										<#assign detailPage = "caracteristica" 
138												 layoutDetail = layoutLocalService.getFriendlyURLLayout(themeDisplay.getScopeGroupId(), false, "/"+detailPage) /> 
139									</#if> 
140										 
141									<#assign categoryUrl = PortletURLFactoryUtil.create(request, "com_liferay_asset_categories_navigation_web_portlet_AssetCategoriesNavigationPortlet", layoutDetail.getPlid(), PortletRequest.RENDER_PHASE)/> 
142									${categoryUrl.setParameter("categoryId", childCategory.getCategoryId()+"")}								 
143																		 
144									<#if journalArticleSub?has_content> 
145										<div class="col-md-6">	                                 
146											<h3 class="title">${texto}</h3> 
147											<div class="col-content">  
148												<div class="col-summary without-icon">                                  
149													${descripcion} 
150												</div> 
151											</div>	                               		 
152											<div class="link-more"> 
153												<a class="more-information" title="${languageUtil.get(locale,'webasturias.general.more-info-about')} ${childCategory.getTitle(locale)}" 
154													href="${categoryUrl}" >${languageUtil.get(locale,'webasturias.general.more-info')}</a> 
155											</div>	                               				                               				 
156										</div> 
157									</#if> 
158								</#if>	              
159						   </#list>    
160						</#if>                  
161					</div>	              	 
162				</div> <#-- outer -->   
163			</div> 
164		</div>      
165	<#-- No hay subcategorías, pintamos los contenidos de la categoría --> 
166	<#else>   
167		<#assign contentId = (assetCategoryPropertyService.fetchCategoryProperty(currentCategory.getCategoryId(), "idContenido").getValue())!"" 
168				 journalArticle = journalArticleService.getLatestArticle(groupId,contentId) 
169				 currentCategoryContent = journalArticleService.getArticleContent(journalArticle, "TPL_CATEGORIA_IMG_CARACT","VIEW", locale, themeDisplay) 
170				 journalArticles = assetCategoriesCustomService.findJournalArticlesElasticSearchByCategoryId(currentCategory.getCategoryId(), groupId, portalUtil.getCompanyId(request), structureArticulo.getStructureId(), locale,"fecha", "desc")/>                          
171		 
172		<div class="card flex-md-row mb-4 box-shadow h-md-250"> 
173			<div class="card-body d-flex flex-column align-items-start  navegacion-categorias"> 
174				${portalUtil.setPageTitle(currentCategory.getTitle(locale), request)} 
175				<h2 class="mb-0">${currentCategory.getTitle(locale)}</h2>   
176				<div class="outer">               	 
177					<#if journalArticles?size lte 3>   
178						<div class="row with-margin">     
179							<div class="col-md-5"> 
180								${currentCategoryContent}		              			 
181							</div>          			           		                		 
182							<div class="col-md-7">           
183								<#list journalArticles as journalArticle> 
184									<#assign document = SAXReaderUtil.read(journalArticle.getContentByLocale(locale)) 
185											 tituloNode = document.selectSingleNode("/root/dynamic-element[@name='titulo']/dynamic-content") 
186											 titulo = tituloNode.getText() 
187											 currentUrl = renderResponse.createRenderURL() 
188											 detailPage = "detalle" 
189											 layoutDetail = layoutLocalService.getFriendlyURLLayout(themeDisplay.getScopeGroupId(), false, "/"+detailPage) 
190											 detailUrl = PortletURLFactoryUtil.create(request, "com_liferay_asset_categories_navigation_web_portlet_AssetCategoriesNavigationPortlet", layoutDetail.getPlid(), PortletRequest.RENDER_PHASE) 
191											 tipo=""	 
192											 resumen=""	             			 
193									/> 
194									<#if document.selectSingleNode("/root/dynamic-element[@name='tipo']/dynamic-content") ? has_content> 
195										<#assign tipoNode = document.selectSingleNode("/root/dynamic-element[@name='tipo']/dynamic-content") 
196											 tipo = tipoNode.getText() 
197										/>										     		 
198									</#if>	    
199									<#if document.selectSingleNode("/root/dynamic-element[@name='resumen']/dynamic-content") ? has_content> 
200										<#assign resumenNode = document.selectSingleNode("/root/dynamic-element[@name='resumen']/dynamic-content") 
201											 resumen = resumenNode.getText() 
202										/>										     		 
203									</#if>	            
204									${currentUrl.setParameter("categoryId",categoryId+"")} 
205									${detailUrl.setParameter("categoryId",currentCategory.getCategoryId()+"")} 
206									${detailUrl.setParameter("articleId", journalArticle.getArticleId())}									                      
207									 
208									<div class="col-md-12 articulo-relacionado"> 
209									 
210										<#if tipo == "ext">       
211											<#assign articleContent = journalArticleService.getArticleContent(journalArticle, "TPL_ARTICULO_EXTERNO", "VIEW", locale, themeDisplay)/> 
212											${articleContent}     
213										<#elseif tipo == "list" >							                  			 
214											<h4 class="title">${titulo}</h4> 
215											<#if resumen != ""> 
216												<div class="summary tipo-list">${resumen} </div> 
217											</#if> 
218											 
219											<#assign articulosRelacionadosNode =  document.selectNodes("/root/dynamic-element[@name='articulosRelacionados']/dynamic-content")   /> 
220											<#if articulosRelacionadosNode[0].getText()?has_content> 
221												<ul> 
222													<#list articulosRelacionadosNode[0..2] as articuloRelacionado> 
223														<#if articuloRelacionado?has_content && articuloRelacionado.getText() ? has_content> 
224															<#assign articuloRelacionadoJSONObject = jsonFactoryUtil.createJSONObject(articuloRelacionado.getText()) />                                             
225															<#if articuloRelacionadoJSONObject.get("classPK")?has_content> 
226																<#assign articuloRelacionadoClassPk = articuloRelacionadoJSONObject.get("classPK") /> 
227																<#assign journalArticleList = journalArticleService.fetchLatestArticle(articuloRelacionadoClassPk?number)  
228																		currentUrlList = renderResponse.createRenderURL()								                  
229																		documentArticleList = SAXReaderUtil.read(journalArticleList.getContentByLocale(locale))     
230																		tituloArticulo = "" 
231																		tipoArticulo = "" 
232																		enlaceExternoArticulo = "" 
233																/>	 
234																<#if  documentArticleList.selectSingleNode("/root/dynamic-element[@name='titulo']/dynamic-content") ? has_content> 
235																	<#assign tituloArticuloNode = documentArticleList.selectSingleNode("/root/dynamic-element[@name='titulo']/dynamic-content") 
236																		tituloArticulo = tituloArticuloNode.getText() 
237																		/> 
238																</#if>	 
239																 <#if documentArticleList.selectSingleNode("/root/dynamic-element[@name='tipo']/dynamic-content") ? has_content> 
240																	<#assign tipoArticuloNode = documentArticleList.selectSingleNode("/root/dynamic-element[@name='tipo']/dynamic-content") 
241																		tipoArticulo = tipoArticuloNode.getText() 
242																		/> 
243																</#if>								                                             
244																<#assign detailPage = "detalle" 
245																	layoutDetail = layoutLocalService.getFriendlyURLLayout(themeDisplay.getScopeGroupId(), false, "/"+detailPage) 
246																	detailUrl = PortletURLFactoryUtil.create(request, "com_liferay_asset_categories_navigation_web_portlet_AssetCategoriesNavigationPortlet", layoutDetail.getPlid(), PortletRequest.RENDER_PHASE) 
247																/>     					                                                
248																${detailUrl.setParameter("categoryId",currentCategory.getCategoryId()+"")}	 
249																${detailUrl.setParameter("articleId", journalArticleList.getArticleId())} 
250																 
251																 <#if tipoArticulo == "ext">      
252																	<#if documentArticleList.selectSingleNode("/root/dynamic-element[@name='enlaceExterno']/dynamic-content") ? has_content> 
253																		<#assign enlaceExternoArticuloNode = documentArticleList.selectSingleNode("/root/dynamic-element[@name='enlaceExterno']/dynamic-content") 
254																			enlaceExternoArticulo = enlaceExternoArticuloNode.getText() 
255																			/> 
256																	</#if>						                                              
257																	<li> 
258																		<a href="${enlaceExternoArticulo}" target="_blank"  
259																		title="${languageUtil.get(locale,'webasturias.general.external-link')}. ${tituloArticulo}">${tituloArticulo}</a>  
260																	</li>  
261																<#else>  
262																	<li> 
263																		<a href="${detailUrl}&articleId=${journalArticleList.getArticleId()}&title=${HtmlUtil.escapeURL(tituloArticulo)}&redirect=${HtmlUtil.escapeURL(currentUrlList)}" 
264																		title="${languageUtil.get(locale,'webasturias.general.more-info-sobre')} ${tituloArticulo}">${tituloArticulo}</a>  
265																	</li>	 
266																</#if>   				                                                    
267															</#if> 
268														</#if> 
269													    
270													</#list> 
271												</ul> 
272												<div class="link-more"> 
273													<a class="more-information" title="${languageUtil.get(locale,'webasturias.general.more-info-about')} ${titulo}" 
274														href="${detailUrl}&articleId=${journalArticle.getArticleId()}&title=${HtmlUtil.escapeURL(titulo)}&redirect=${HtmlUtil.escapeURL(currentUrl)}">${languageUtil.get(locale,'webasturias.general.more-info')}</a> 
275												</div>	 
276											</#if>		 
277										<#else>			                  		 
278											<#assign articleContent = journalArticleService.getArticleContent(journalArticle, "TPL_ARTICULO_LISTADO", "VIEW", locale, themeDisplay)/> 
279											${articleContent}    
280											<div class="link-more"> 
281												<a class="more-information" title="${languageUtil.get(locale,'webasturias.general.more-info-about')} ${titulo}" 
282													href="${detailUrl}&articleId=${journalArticle.getArticleId()}&title=${HtmlUtil.escapeURL(titulo)}&redirect=${HtmlUtil.escapeURL(currentUrl)}">${languageUtil.get(locale,'webasturias.general.more-info')}</a> 
283											</div>	 
284										</#if>				                    
285									</div>  
286								</#list>  
287							</div> 
288					   </div> 
289					<#else> 
290						<div class="row with-margin">     
291							<div class="col-md-5"> 
292								${currentCategoryContent}		              			 
293							</div>   
294							<div class="col-md-7">           
295								<#list journalArticles[0..2] as journalArticle> 
296									<#assign document = SAXReaderUtil.read(journalArticle.getContentByLocale(locale)) 
297											 tituloNode = document.selectSingleNode("/root/dynamic-element[@name='titulo']/dynamic-content") 
298											 titulo = tituloNode.getText() 
299											 currentUrl = renderResponse.createRenderURL() 
300											 detailPage = "detalle" 
301											 layoutDetail = layoutLocalService.getFriendlyURLLayout(themeDisplay.getScopeGroupId(), false, "/"+detailPage) 
302											 detailUrl = PortletURLFactoryUtil.create(request, "com_liferay_asset_categories_navigation_web_portlet_AssetCategoriesNavigationPortlet", layoutDetail.getPlid(), PortletRequest.RENDER_PHASE) 
303											 tipo=""  
304											 resumen ="" 
305									/> 
306									<#if document.selectSingleNode("/root/dynamic-element[@name='tipo']/dynamic-content") ? has_content> 
307										<#assign tipoNode = document.selectSingleNode("/root/dynamic-element[@name='tipo']/dynamic-content") 
308											 tipo = tipoNode.getText() 
309										/>										     		 
310									</#if>	 
311									 
312									<#if document.selectSingleNode("/root/dynamic-element[@name='resumen']/dynamic-content") ? has_content> 
313										<#assign resumenNode = document.selectSingleNode("/root/dynamic-element[@name='resumen']/dynamic-content") 
314											 resumen = resumenNode.getText() 
315										/>										     		 
316									</#if>	  
317																 
318									${currentUrl.setParameter("categoryId",categoryId+"")} 
319									${detailUrl.setParameter("categoryId",currentCategory.getCategoryId()+"")} 
320									${detailUrl.setParameter("articleId", journalArticle.getArticleId())}									                      
321									 
322									<div class="col-md-12 articulo-relacionado"> 
323										<#if tipo == "ext">       
324											<#assign articleContent = journalArticleService.getArticleContent(journalArticle, "TPL_ARTICULO_EXTERNO", "VIEW", locale, themeDisplay)/> 
325											${articleContent}     
326										<#elseif tipo == "list" >							                  			 
327											<h4 class="title">${titulo}</h4> 
328											<#if resumen != ""> 
329												<div class="summary tipo-list">${resumen} </div>											 
330											</#if> 
331											<#assign articulosRelacionadosNode =  document.selectNodes("/root/dynamic-element[@name='articulosRelacionados']/dynamic-content")   /> 
332											<#if articulosRelacionadosNode?size gt 0> 
333											<#if articulosRelacionadosNode[0].getText()?has_content> 
334												<ul> 
335													<#assign i = 0> 
336													<#list articulosRelacionadosNode as articuloRelacionado> 
337														<#if articuloRelacionado?has_content && articuloRelacionado.getText() ? has_content> 
338															<#assign articuloRelacionadoJSONObject = jsonFactoryUtil.createJSONObject(articuloRelacionado.getText()) />                                             
339															<#if articuloRelacionadoJSONObject.get("classPK")?has_content> 
340																<#assign articuloRelacionadoClassPk = articuloRelacionadoJSONObject.get("classPK") /> 
341																<#assign journalArticleList = journalArticleService.fetchLatestArticle(articuloRelacionadoClassPk?number)  
342																		currentUrlList = renderResponse.createRenderURL()								                  
343																		documentArticleList = SAXReaderUtil.read(journalArticleList.getContentByLocale(locale))     
344																		tituloArticulo = "" 
345																		tipoArticulo = "" 
346																		enlaceExternoArticulo = "" 
347																/>		 
348																<#if  documentArticleList.selectSingleNode("/root/dynamic-element[@name='titulo']/dynamic-content") ? has_content> 
349																	<#assign tituloArticuloNode = documentArticleList.selectSingleNode("/root/dynamic-element[@name='titulo']/dynamic-content") 
350																		tituloArticulo = tituloArticuloNode.getText() 
351																		/> 
352																</#if>	 
353																 <#if documentArticleList.selectSingleNode("/root/dynamic-element[@name='tipo']/dynamic-content") ? has_content> 
354																	<#assign tipoArticuloNode = documentArticleList.selectSingleNode("/root/dynamic-element[@name='tipo']/dynamic-content") 
355																		tipoArticulo = tipoArticuloNode.getText() 
356																		/> 
357																</#if>								                                             
358																<#assign detailPage = "detalle" 
359																	layoutDetail = layoutLocalService.getFriendlyURLLayout(themeDisplay.getScopeGroupId(), false, "/"+detailPage) 
360																	detailUrl = PortletURLFactoryUtil.create(request, "com_liferay_asset_categories_navigation_web_portlet_AssetCategoriesNavigationPortlet", layoutDetail.getPlid(), PortletRequest.RENDER_PHASE) 
361																/>    					                                                
362																${detailUrl.setParameter("categoryId",currentCategory.getCategoryId()+"")}	 
363																${detailUrl.setParameter("articleId", journalArticleList.getArticleId())} 
364																 
365																<#if tipoArticulo == "ext">      
366																	<#if documentArticleList.selectSingleNode("/root/dynamic-element[@name='enlaceExterno']/dynamic-content") ? has_content> 
367																		<#assign enlaceExternoArticuloNode = documentArticleList.selectSingleNode("/root/dynamic-element[@name='enlaceExterno']/dynamic-content") 
368																			enlaceExternoArticulo = enlaceExternoArticuloNode.getText() 
369																			/> 
370																	</#if>						                                              
371																	<li> 
372																		<a href="${enlaceExternoArticulo}" target="_blank"  
373																		title="${languageUtil.get(locale,'webasturias.general.external-link')}. ${tituloArticulo}">${tituloArticulo}</a>  
374																	</li>  
375																<#else>  
376																	<li> 
377																		<a href="${detailUrl}&articleId=${journalArticleList.getArticleId()}&title=${HtmlUtil.escapeURL(tituloArticulo)}&redirect=${HtmlUtil.escapeURL(currentUrlList)}" 
378																		title="${languageUtil.get(locale,'webasturias.general.more-info-sobre')} ${tituloArticulo}">${tituloArticulo}</a>  
379																	</li>	 
380																</#if> 
381																 
382																<#assign i = i + 1> 
383																<#if i gte 2> 
384																	<#break /> 
385																</#if> 
386															</#if> 
387														</#if> 
388													    
389													</#list> 
390												</ul> 
391												<div class="link-more"> 
392													<a class="more-information" title="${languageUtil.get(locale,'webasturias.general.more-info-about')} ${titulo}" 
393														href="${detailUrl}&articleId=${journalArticle.getArticleId()}&title=${HtmlUtil.escapeURL(titulo)}&redirect=${HtmlUtil.escapeURL(currentUrl)}">${languageUtil.get(locale,'webasturias.general.more-info')}</a> 
394												</div>	 
395											</#if> 
396											</#if>											 
397										<#else> 
398											<#assign articleContent = journalArticleService.getArticleContent(journalArticle, "TPL_ARTICULO_LISTADO", "VIEW", locale, themeDisplay)/> 
399											${articleContent}    
400											<div class="link-more"> 
401												<a class="more-information" title="${languageUtil.get(locale,'webasturias.general.more-info-about')} ${titulo}" 
402													href="${detailUrl}&articleId=${journalArticle.getArticleId()}&title=${HtmlUtil.escapeURL(titulo)}&redirect=${HtmlUtil.escapeURL(currentUrl)}">${languageUtil.get(locale,'webasturias.general.more-info')}</a> 
403											</div>	 
404										</#if>				                    
405									</div>  
406								</#list>  
407							</div> 
408						</div> 
409						<div class="row">   
410							<#list journalArticles[3..journalArticles?size-1] as journalArticle> 
411								<#assign document = SAXReaderUtil.read(journalArticle.getContentByLocale(locale)) 
412										 tituloNode = document.selectSingleNode("/root/dynamic-element[@name='titulo']/dynamic-content") 
413										 titulo = tituloNode.getText() 
414										 currentUrl = renderResponse.createRenderURL() 
415										 detailPage = "detalle" 
416										 layoutDetail = layoutLocalService.getFriendlyURLLayout(themeDisplay.getScopeGroupId(), false, "/"+detailPage) 
417										 detailUrl = PortletURLFactoryUtil.create(request, "com_liferay_asset_categories_navigation_web_portlet_AssetCategoriesNavigationPortlet", layoutDetail.getPlid(), PortletRequest.RENDER_PHASE) 
418										 tipo=""  
419										 resumen="" 
420								/> 
421								<#if document.selectSingleNode("/root/dynamic-element[@name='tipo']/dynamic-content") ? has_content> 
422									<#assign tipoNode = document.selectSingleNode("/root/dynamic-element[@name='tipo']/dynamic-content") 
423										 tipo = tipoNode.getText() 
424									/>										     		 
425								</#if>	 
426								<#if document.selectSingleNode("/root/dynamic-element[@name='resumen']/dynamic-content") ? has_content> 
427										<#assign resumenNode = document.selectSingleNode("/root/dynamic-element[@name='resumen']/dynamic-content") 
428											 resumen = resumenNode.getText() 
429										/>										     		 
430									</#if>	  
431											 
432								${currentUrl.setParameter("categoryId",categoryId+"")} 
433								${detailUrl.setParameter("categoryId",currentCategory.getCategoryId()+"")} 
434								${detailUrl.setParameter("articleId", journalArticle.getArticleId())}									                      
435								 
436								<div class="col-md-6 articulo-relacionado"> 
437									<#if tipo == "ext">       
438										<#assign articleContent = journalArticleService.getArticleContent(journalArticle, "TPL_ARTICULO_EXTERNO", "VIEW", locale, themeDisplay)/> 
439										${articleContent}     
440									<#elseif tipo == "list" >							                  			 
441										<h4 class="title">${titulo}</h4> 
442										<#if resumen != ""> 
443											<div class="summary tipo-list">${resumen} </div>											 
444										</#if> 
445											 
446										<#assign articulosRelacionadosNode =  document.selectNodes("/root/dynamic-element[@name='articulosRelacionados']/dynamic-content")   /> 
447										<#if articulosRelacionadosNode?size gt 0> 
448										<#if articulosRelacionadosNode[0].getText()?has_content> 
449											<ul> 
450												<#assign i = 0> 
451												<#list articulosRelacionadosNode as articuloRelacionado> 
452													<#if articuloRelacionado?has_content && articuloRelacionado.getText() ? has_content> 
453														<#assign articuloRelacionadoJSONObject = jsonFactoryUtil.createJSONObject(articuloRelacionado.getText()) />                                             
454														<#if articuloRelacionadoJSONObject.get("classPK")?has_content> 
455															<#assign articuloRelacionadoClassPk = articuloRelacionadoJSONObject.get("classPK") /> 
456															<#assign journalArticleList = journalArticleService.fetchLatestArticle(articuloRelacionadoClassPk?number)  
457																	currentUrlList = renderResponse.createRenderURL()								                  
458																	documentArticleList = SAXReaderUtil.read(journalArticleList.getContentByLocale(locale))     
459																	tituloArticulo = "" 
460																	tipoArticulo = "" 
461																	enlaceExternoArticulo = "" 
462															/>								                             
463										    
464															<#if  documentArticleList.selectSingleNode("/root/dynamic-element[@name='titulo']/dynamic-content") ? has_content> 
465																<#assign tituloArticuloNode = documentArticleList.selectSingleNode("/root/dynamic-element[@name='titulo']/dynamic-content") 
466																	tituloArticulo = tituloArticuloNode.getText() 
467																	/> 
468															</#if>										                                                           			 
469															 <#if documentArticleList.selectSingleNode("/root/dynamic-element[@name='tipo']/dynamic-content") ? has_content> 
470																<#assign tipoArticuloNode = documentArticleList.selectSingleNode("/root/dynamic-element[@name='tipo']/dynamic-content") 
471																	tipoArticulo = tipoArticuloNode.getText() 
472																	/> 
473															</#if>										                                             
474															<#assign detailPage = "detalle" 
475																layoutDetail = layoutLocalService.getFriendlyURLLayout(themeDisplay.getScopeGroupId(), false, "/"+detailPage) 
476																detailUrl = PortletURLFactoryUtil.create(request, "com_liferay_asset_categories_navigation_web_portlet_AssetCategoriesNavigationPortlet", layoutDetail.getPlid(), PortletRequest.RENDER_PHASE) 
477															/>      
478																																	    
479															${detailUrl.setParameter("categoryId",currentCategory.getCategoryId()+"")}	 
480															${detailUrl.setParameter("articleId", journalArticleList.getArticleId())} 
481															 
482															 <#if tipoArticulo == "ext">      
483																<#if documentArticleList.selectSingleNode("/root/dynamic-element[@name='enlaceExterno']/dynamic-content") ? has_content> 
484																	<#assign enlaceExternoArticuloNode = documentArticleList.selectSingleNode("/root/dynamic-element[@name='enlaceExterno']/dynamic-content") 
485																		enlaceExternoArticulo = enlaceExternoArticuloNode.getText() 
486																		/> 
487																</#if>						                                              
488																<li> 
489																	<a href="${enlaceExternoArticulo}" target="_blank"  
490																	title="${languageUtil.get(locale,'webasturias.general.external-link')}. ${tituloArticulo}">${tituloArticulo}</a>  
491																</li>  
492															<#else>  
493																<li> 
494																	<a href="${detailUrl}&articleId=${journalArticleList.getArticleId()}&title=${HtmlUtil.escapeURL(tituloArticulo)}&redirect=${HtmlUtil.escapeURL(currentUrlList)}" 
495																	title="${languageUtil.get(locale,'webasturias.general.more-info-sobre')} ${tituloArticulo}">${tituloArticulo}</a>  
496																</li>	 
497															</#if> 
498															 
499															<#assign i = i + 1> 
500															<#if i gte 2> 
501																<#break /> 
502															</#if> 
503														</#if> 
504													</#if> 
505												    
506												</#list> 
507											</ul> 
508											<div class="link-more"> 
509												<a class="more-information" title="${languageUtil.get(locale,'webasturias.general.more-info-about')} ${titulo}" 
510													href="${detailUrl}&articleId=${journalArticle.getArticleId()}&title=${HtmlUtil.escapeURL(titulo)}&redirect=${HtmlUtil.escapeURL(currentUrl)}">${languageUtil.get(locale,'webasturias.general.more-info')}</a> 
511											</div>	 
512										</#if> 
513										</#if> 
514									<#else> 
515										<#assign articleContent = journalArticleService.getArticleContent(journalArticle, "TPL_ARTICULO_LISTADO", "VIEW", locale, themeDisplay)/> 
516										${articleContent}    
517										<div class="link-more"> 
518											<a class="more-information" title="${languageUtil.get(locale,'webasturias.general.more-info-about')} ${titulo}" 
519												href="${detailUrl}&articleId=${journalArticle.getArticleId()}&title=${HtmlUtil.escapeURL(titulo)}&redirect=${HtmlUtil.escapeURL(currentUrl)}">${languageUtil.get(locale,'webasturias.general.more-info')}</a> 
520										</div>	 
521									</#if>				      							                    
522								</div>  
523							</#list>  
524						</div> 
525					</#if>     
526				</div>  
527			</div> 
528		</div>    	 
529	</#if> 
530</#if> 

Combo selector de categorías

Se ha producido un error inesperado del sistema.

Asset Publisher

Se ha producido un error al procesar la plantilla.
Java method "com.sun.proxy.$Proxy679.getCategoryProperty(long, String)" threw an exception when invoked on com.sun.proxy.$Proxy679 object "com.liferay.asset.category.property.service.impl.AssetCategoryPropertyLocalServiceImpl@73f48a2b"; see cause exception in the Java stack trace.

----
FTL stack trace ("~" means nesting-related):
	- Failed at: #if assetCategoryPropertyService.getC...  [in template "217051#217099#573557" at line 18, column 5]
----
1<#assign assetCategoryService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetCategoryLocalService") 
2		 assetCategoryPropertyService =  serviceLocator.findService("com.liferay.asset.category.property.service.AssetCategoryPropertyLocalService") 
3         assetCategoriesCustomService = serviceLocator.findService("pa.mtl.assetcategories.service.api.AssetCategoriesServiceApi") 
4		 SAXReaderUtil = staticUtil["com.liferay.portal.kernel.xml.SAXReaderUtil"] 
5		 HtmlUtil = staticUtil["com.liferay.portal.kernel.util.HtmlUtil"] 
6		 layoutLocalService = serviceLocator.findService("com.liferay.portal.kernel.service.LayoutLocalService") 
7		 PortletURLFactoryUtil = staticUtil["com.liferay.portal.kernel.portlet.PortletURLFactoryUtil"] 
8		 PortletRequest = staticUtil["javax.portlet.PortletRequest"]   
9		 journalArticleService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService")   
10		 ParamUtil = staticUtil["com.liferay.portal.kernel.util.ParamUtil"]              
11         categoryId = ParamUtil.getLong(request,"categoryId", 0)      
12/> 
13<!-- Comprobación de la propiedad categoryId --> 
14<#if (categoryId <= 0) > 
15	<#assign categoryId = ParamUtil.getLong(renderRequest,"categoryId", 0)/> 
16</#if> 
17<#if (categoryId > 0) > 
18    <#if assetCategoryPropertyService.getCategoryProperty(categoryId,"idContenido") ? has_content > 
19        <#assign contentIdProperty = assetCategoryPropertyService.getCategoryProperty(categoryId,"idContenido")/> 
20        <#assign contentId = contentIdProperty.getValue()/> 
21        <#if contentId ? has_content> 
22        	<#assign  
23				structureEnlace = assetCategoriesCustomService.getJournalStructureByKey(groupId,"STR_ENLACE") 
24				journalArticles = assetCategoriesCustomService.findJournalArticlesByCategoryId(categoryId, groupId, structureEnlace.getStructureId(), null, "title", "asc", null, null) 
25			/> 
26			<#if journalArticles ? has_content> 
27	            <div class="caja-redonda sin-fondo"> 
28		            <h3>${languageUtil.get(locale,'webasturias.webtematicas.titulo')}</h3>  
29		            <div class="caja-redonda-content"> 
30		                <div class="content-summary without-icon"> 
31		                    <ul> 
32		                        <#list journalArticles as journalArticle> 
33					            	<#assign document = SAXReaderUtil.read(journalArticle.getContentByLocale(locale))/> 
34					            	 
35		                            <#if  document.selectSingleNode("/root/dynamic-element[@name='titulo']/dynamic-content") ? has_content> 
36		                                <#assign tituloNode = document.selectSingleNode("/root/dynamic-element[@name='titulo']/dynamic-content") 
37		                                    titulo = tituloNode.getText() 
38		                                    /> 
39		                            </#if>	 
40		                            <#if  document.selectSingleNode("/root/dynamic-element[@name='urlEnlace']/dynamic-content") ? has_content> 
41		                                <#assign urlEnlaceNode = document.selectSingleNode("/root/dynamic-element[@name='urlEnlace']/dynamic-content") 
42		                                    urlEnlace = urlEnlaceNode.getText() 
43		                                    /> 
44		                            </#if> 
45		                             
46		                            <li> 
47		                                <a class="popup" target="_blank" href="${urlEnlace}"  
48		                                    title="${titulo}. ${languageUtil.get(locale,'webasturias.general.external-link')}">${titulo}</a> 
49		                            </li> 
50		                        </#list> 
51		                    </ul> 
52		                </div>  
53		            </div>  
54	            </div> 
55            </#if> 
56        </#if> 
57    </#if> 
58</#if> 

Asset Publisher

Se ha producido un error al procesar la plantilla.
Java method "com.sun.proxy.$Proxy679.getCategoryProperty(long, String)" threw an exception when invoked on com.sun.proxy.$Proxy679 object "com.liferay.asset.category.property.service.impl.AssetCategoryPropertyLocalServiceImpl@73f48a2b"; see cause exception in the Java stack trace.

----
FTL stack trace ("~" means nesting-related):
	- Failed at: #if assetCategoryPropertyService.getC...  [in template "217051#217099#573561" at line 20, column 5]
----
1<#assign assetCategoryService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetCategoryLocalService") 
2		 assetCategoryPropertyService =  serviceLocator.findService("com.liferay.asset.category.property.service.AssetCategoryPropertyLocalService") 
3         assetCategoriesCustomService = serviceLocator.findService("pa.mtl.assetcategories.service.api.AssetCategoriesServiceApi") 
4		 SAXReaderUtil = staticUtil["com.liferay.portal.kernel.xml.SAXReaderUtil"] 
5		 HtmlUtil = staticUtil["com.liferay.portal.kernel.util.HtmlUtil"] 
6		 layoutLocalService = serviceLocator.findService("com.liferay.portal.kernel.service.LayoutLocalService") 
7		 PortletURLFactoryUtil = staticUtil["com.liferay.portal.kernel.portlet.PortletURLFactoryUtil"] 
8		 PortletRequest = staticUtil["javax.portlet.PortletRequest"]   
9		 journalArticleService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService")   
10		 ParamUtil = staticUtil["com.liferay.portal.kernel.util.ParamUtil"]              
11         categoryId = ParamUtil.getLong(request,"categoryId", 0) 
12		 portalUtil = staticUtil["com.liferay.portal.kernel.util.PortalUtil"]         
13         /> 
14<!-- Comprobación de la propiedad categoryId --> 
15<#if (categoryId <= 0) > 
16	<#assign categoryId = ParamUtil.getLong(renderRequest,"categoryId", 0)/> 
17</#if> 
18 
19<#if (categoryId > 0) > 
20    <#if assetCategoryPropertyService.getCategoryProperty(categoryId,"idContenido") ? has_content > 
21        <#assign contentIdProperty = assetCategoryPropertyService.getCategoryProperty(categoryId,"idContenido")/> 
22        <#assign contentId = contentIdProperty.getValue()/> 
23        <#if contentId ? has_content> 
24            <#assign journalArticleSub = journalArticleService.getLatestArticle(groupId,contentId)/> 
25             
26            <#assign document = SAXReaderUtil.read(journalArticleSub.getContentByLocale(locale)) 
27                destacamosNode =  document.selectNodes("/root/dynamic-element[@name='destacamos']/dynamic-content") 
28            /> 
29            <#if destacamosNode[0].getText()?has_content> 
30                <div class="caja-redonda sin-fondo">  
31                <h3>${languageUtil.get(locale,'webasturias.destacamos.titulo')}</h3>  
32                <div class="caja-redonda-content">   
33                    <div class="content-summary without-icon">  
34                        <ul> 
35							<#assign structureEnlace = assetCategoriesCustomService.getJournalStructureByKey(groupId, "STR_ENLACE") /> 
36							<#assign structureEnlaceSidra = assetCategoriesCustomService.getJournalStructureByKey(groupId, "STR_ENLACE_SIDRA") /> 
37							<#assign structureArticulo = assetCategoriesCustomService.getJournalStructureByKey(groupId, "STR_ARTICULO") /> 
38 
39                            <#list destacamosNode as destacamos> 
40                                <#if destacamos?has_content> 
41                                    <#if destacamos.getText() ? has_content> 
42                                        <#assign  destacamosJSONObject = jsonFactoryUtil.createJSONObject(destacamos.getText()) />                                             
43                                        <#if  destacamosJSONObject.get("classPK")?has_content> 
44										    <#assign destacamosClassPk = destacamosJSONObject.get("classPK") /> 
45                                            <#assign journalArticle = journalArticleService.fetchLatestArticle(destacamosClassPk?number)  
46                                                    currentUrl = renderResponse.createRenderURL()								                  
47                                                    document = SAXReaderUtil.read(journalArticle.getContentByLocale(locale))                 		  
48                                                    urlEnlace = ""                 		 
49                                                    titulo = "" 
50                                            /> 
51                             
52                                            <#if  document.selectSingleNode("/root/dynamic-element[@name='titulo']/dynamic-content") ? has_content> 
53                                                <#assign tituloNode = document.selectSingleNode("/root/dynamic-element[@name='titulo']/dynamic-content") 
54                                                    titulo = tituloNode.getText() 
55                                                    /> 
56                                            </#if>	 
57                                            <#if  document.selectSingleNode("/root/dynamic-element[@name='urlEnlace']/dynamic-content") ? has_content> 
58                                                <#assign urlEnlaceNode = document.selectSingleNode("/root/dynamic-element[@name='urlEnlace']/dynamic-content") 
59                                                    urlEnlace = urlEnlaceNode.getText() 
60                                                    /> 
61                                            </#if>	                			 
62                                             
63                                            <#if structureArticulo.getStructureKey() == journalArticle.getStructureId() > 
64                                                <#assign detailPage = "detalle" 
65                                                    layoutDetail = layoutLocalService.getFriendlyURLLayout(themeDisplay.getScopeGroupId(), false, "/"+detailPage) 
66                                                    detailUrl = PortletURLFactoryUtil.create(request, "com_liferay_asset_categories_navigation_web_portlet_AssetCategoriesNavigationPortlet", layoutDetail.getPlid(), PortletRequest.RENDER_PHASE) 
67                                                />      
68                                                     
69                                                ${detailUrl.setParameter("articleId", journalArticle.getArticleId())} 
70                                                ${detailUrl.setParameter("categoryId",categoryId?string)} 
71                                                 
72                                                <li> 
73                                                    <a href="${detailUrl}&articleId=${journalArticle.getArticleId()}&title=${HtmlUtil.escapeURL(titulo)}&redirect=${HtmlUtil.escapeURL(currentUrl)}" 
74                                                    title="${languageUtil.get(locale,'webasturias.general.more-info-sobre')} ${titulo}">${titulo}</a>  
75                                                </li>		     	             	 
76                                            <#elseif structureEnlace.getStructureKey() == journalArticle.getStructureId() > 
77                                                <#if  document.selectSingleNode("/root/dynamic-element[@name='urlEnlace']/dynamic-content") ? has_content> 
78                                                    <#assign urlEnlaceNode = document.selectSingleNode("/root/dynamic-element[@name='urlEnlace']/dynamic-content") 
79                                                        urlEnlace = urlEnlaceNode.getText() 
80                                                        /> 
81                                                </#if>	 
82                                                <li> 
83                                                    <a class="popup" target="_blank" href="${urlEnlace}"  
84                                                        title="${titulo}. ${languageUtil.get(locale,'webasturias.general.external-link')}">${titulo}</a> 
85                                                </li>  
86											 <#elseif structureEnlaceSidra.getStructureKey() == journalArticle.getStructureId() > 
87												<#assign  assetCategory = assetCategoryService.getCategory(categoryId) 
88													categoryName = assetCategory.getTitle(locale) 
89													titulo = titulo?replace("xxxx", categoryName)/> 
90												  
91												 <#if  document.selectSingleNode("/root/dynamic-element[@name='urlEnlace']/dynamic-content") ? has_content> 
92														<#assign urlEnlaceNode = 		document.selectSingleNode("/root/dynamic-element[@name='urlEnlace']/dynamic-content") 
93														urlEnlace = urlEnlaceNode.getText()?replace("migaurlReplace", portalUtil.getCurrentCompleteURL(request))?replace("migatextoReplace", categoryName)?replace("textoReplace", categoryName)  
94														/> 
95													</#if>	 
96													<li> 
97														<a class="popup" target="_blank" href="${urlEnlace}"  
98															title="${titulo}. ${languageUtil.get(locale,'webasturias.general.external-link')}">${titulo}</a> 
99													</li>  
100												</#if> 
101                                        </#if> 
102                                    </#if> 
103                                </#if> 
104                            </#list> 
105                            </ul> 
106                        </div>  
107                    </div>  
108                </div> 
109            </#if> 
110        </#if> 
111    </#if> 
112</#if> 

Asset Publisher

No hay resultados.

Contacta columna derecha

Contacta

Serviciu d'atención ciudadana

Iconu - Llámanos

Llámanos al 012 (985 279 100 dende fuera d'Asturies)

Iconu - Buzón del ciudadanu

Escríbinos al buzón ciudadanu

Iconu - Ven a venos

Ven a venos a les nuestres oficines

Iconu - Solicita cita previa

Solicita cita previa