Publicador de contenidos
Se ha producido un error al procesar la plantilla.
Java method "com.sun.proxy.$Proxy75.getAssetCategory(long)" threw an exception when invoked on com.sun.proxy.$Proxy75 object "com.liferay.portlet.asset.service.impl.AssetCategoryLocalServiceImpl@28fd8617"; see cause exception in the Java stack trace. ---- FTL stack trace ("~" means nesting-related): - Failed at: #assign category = assetCategoryServi... [in template "646115#646149#789967" at line 24, column 1] ----
1<#assign SAXReaderUtil = staticUtil["com.liferay.portal.kernel.xml.SAXReaderUtil"]
2 journalArticleService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService")
3 assetCategoryService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetCategoryLocalService")
4 assetCategoryPropertyService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetCategoryPropertyLocalService")
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 HtmlUtil = staticUtil["com.liferay.portal.kernel.util.HtmlUtil"]
9 assetEntryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryLocalService")
10 assetCategoryService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetCategoryLocalService")
11 ParamUtil = staticUtil["com.liferay.portal.kernel.util.ParamUtil"]
12 curCategoryId =ParamUtil.getLong(renderRequest,"categoryId", 0)
13 />
14
15<div class="taglib-header ">
16 <span class="header-back-to lfr-portal-tooltip" data-title="${languageUtil.get(locale,"medio.ambiente.general.back")}">
17 <a href="javascript:history.back()" target="_self" class=" lfr-icon-item taglib-icon">
18 <span class=""><svg class="lexicon-icon lexicon-icon-angle-left" focusable="false" role="img" viewBox="0 0 512 512"><path class="lexicon-icon-outline" d="M114.106 254.607c0.22 6.936 2.972 13.811 8.272 19.11l227.222 227.221c11.026 11.058 28.94 11.058 39.999 0 11.058-11.026 11.058-28.94 0-39.999l-206.333-206.333c0 0 206.333-206.333 206.333-206.333 11.058-11.059 11.058-28.973 0-39.999-11.058-11.059-28.973-11.059-39.999 0l-227.221 227.221c-5.3 5.3-8.052 12.174-8.273 19.111z"></path></svg></span>
19 <span class="taglib-text hide-accessible">${languageUtil.get(locale,"medio.ambiente.general.back")}</span> </a>
20 </span>
21 <h3 class="header-title"><span>${languageUtil.get(locale,"medio.ambiente.general.back")}</span> </h3>
22 </div>
23
24<#assign category = assetCategoryService.getAssetCategory(curCategoryId)/>
25
26<div class="link-back-list">
27 <div class="caja-redonda light">
28 <a class="show-all" href="/enlaces-de-interes"><@liferay.language key="medio.ambiente.enlace.all" /></a>
29 </div>
30</div>
31
32<div class="card flex-md-row mb-4 box-shadow h-md-250">
33 <div class="card-body d-flex flex-column align-items-start">
34
35 <#if category ? has_content >
36 <h2 class="mb-0"><@liferay.language key="medio.ambiente.enlace.de"/> ${category.getTitle(locale)}</h2>
37 <#else>
38 <h2 class="mb-0"><@liferay.language key="medio.ambiente.enlace.enlaces" /></h2>
39 </#if>
40
41 <div class="listado-enlaces-secciones enlaces-detallado">
42
43 <#if entries?has_content>
44 <#list entries as curEntry>
45 <#assign journalArticle = journalArticleService.fetchLatestArticle(curEntry.getClassPK()) />
46 <#assign categoriaServiciosTramites = 0 />
47 <#assign assetEntry = assetEntryLocalService.fetchEntry("com.liferay.journal.model.JournalArticle", journalArticle.getResourcePrimKey()?number)
48 listadoCategorias = assetCategoryService.getAssetEntryAssetCategories(assetEntry.getEntryId())
49 />
50
51 <#list listadoCategorias as currentCategory>
52 <#if ( (currentCategory.getTitle(locale) == "${languageUtil.get(locale,'medio.ambiente.category.servicios-tramites')}") || (currentCategory.getTitle(locale) == "${languageUtil.get(locale,'medio.ambiente.category.ayudas-subvenciones')}") ) >
53 <#assign categoriaServiciosTramites = 1 />
54 </#if>
55 </#list>
56
57 <#if categoriaServiciosTramites == 0 >
58
59 <#assign currentUrl = renderResponse.createRenderURL()
60 detailPage = "detalle-enlaces"
61 layoutDetail = layoutLocalService.getFriendlyURLLayout(themeDisplay.getScopeGroupId(), false, "/"+detailPage)
62 document = SAXReaderUtil.read(journalArticle.getContentByLocale(locale))
63 descripcion = ""
64 urlEnlace = ""
65 nombreEnlace = ""
66 titulo = ""
67 />
68
69 <#if document.selectSingleNode("/root/dynamic-element[@name='titulo']/dynamic-content") ? has_content>
70 <#assign tituloNode = document.selectSingleNode("/root/dynamic-element[@name='titulo']/dynamic-content")
71 titulo = tituloNode.getText()
72 />
73 </#if>
74
75 <#if document.selectSingleNode("/root/dynamic-element[@name='descripcion']/dynamic-content") ? has_content>
76 <#assign descripcionNode = document.selectSingleNode("/root/dynamic-element[@name='descripcion']/dynamic-content")
77 descripcion = descripcionNode.getText()
78 />
79 </#if>
80
81 <#if document.selectSingleNode("/root/dynamic-element[@name='urlEnlace']/dynamic-content") ? has_content>
82 <#assign urlEnlaceNode = document.selectSingleNode("/root/dynamic-element[@name='urlEnlace']/dynamic-content")
83 urlEnlace = urlEnlaceNode.getText()
84 />
85 </#if>
86 <#if document.selectSingleNode("/root/dynamic-element[@name='textoAlternativo']/dynamic-content") ? has_content>
87 <#assign textoAlternativoNode = document.selectSingleNode("/root/dynamic-element[@name='textoAlternativo']/dynamic-content")
88 textoAlternativo = textoAlternativoNode.getText()
89 />
90 </#if>
91
92 <#assign nombreEnlace = titulo />
93 <#if (textoAlternativo?? && textoAlternativo != "")>
94 <#assign nombreEnlace = textoAlternativo />
95 </#if>
96
97 <div class="bloque-enlace">
98 <h4>${titulo}</h4>
99 <#if (descripcion?? && descripcion != "")>
100 <div class="summary">${descripcion}</div>
101 </#if>
102 <div class="popup">
103 <a class="popup" target="_blank"
104 href="${urlEnlace}"
105 title="${nombreEnlace}. <@liferay.language key="medio.ambiente.general.external-link" />">${nombreEnlace}</a>
106 </div>
107 </div>
108 </#if>
109 </#list>
110
111 <#else>
112 <div class="alert alert-info">
113 <@liferay.language key="medio.ambiente.category.not-found-results"/>
114 </div>
115 </#if>
116
117 </div>
118 </div>
119</div>