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.AssetEntryAssetCategoryRelAssetCategoryLocalServiceWrapper@53ed59d"; see cause exception in the Java stack trace. ---- FTL stack trace ("~" means nesting-related): - Failed at: category = assetCategoryService.getAs... [in template "217051#217099#698043" at line 48, column 22] - Reached through: #assign-container [in template "217051#217099#698043" at line 48, 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>s
17 <#if entries?first?? && entries?first.getCategories()??>
18 <#foreach aCategory in entries?first.getCategories()>
19 <#assign aCategory = aCategory/>
20 <#break>
21 </#foreach>
22 </#if>
23 <#if aCategory?has_content>
24 <#list 1..maxLoop as i>
25 <#list 1..maxLoop as j>
26 <#if aCategory.getParentCategory()?has_content>
27 <#assign aCategory = aCategory.getParentCategory()/>
28 <#else>
29 <#assign categoryId = aCategory.getCategoryId()/>
30 </#if>
31 <#break>
32 </#list>
33 <#if (categoryId > 0) >
34 <#break>
35 </#if>
36 </#list>
37 </#if>
38 </#if>
39</#if>
40
41<nav aria-label="breadcrumb">
42 <ol class="breadcrumb">
43 <li class="breadcrumb-title"><span>${languageUtil.get(locale,"transparencia.breadcrumb-title")}</span></li>
44 <li class="breadcrumb-item"><a href="http://www.asturias.es">${languageUtil.get(locale,"transparencia.breadcrumb-asturias")}</a></li>
45
46 <#if (categoryId > 0) >
47
48 <#assign category = assetCategoryService.getAssetCategory(categoryId)
49 breadCrumbContent = ""
50 categoryAncestors = category.getAncestors()/>
51
52 <#if categoryAncestors?has_content>
53 <#foreach categoryAncestor in categoryAncestors>
54
55 <#assign detailPage = "general"
56 layoutDetail = layoutLocalService.getFriendlyURLLayout(themeDisplay.getScopeGroupId(), false, "/"+detailPage) />
57
58 <#-- obtener el contenido de la categoría hija -->
59 <#if assetCategoryPropertyService.getCategoryProperty(categoryAncestor.getCategoryId(),"idContenido") ? has_content >
60 <#assign contentIdProperty = assetCategoryPropertyService.getCategoryProperty(categoryAncestor.getCategoryId(),"idContenido")
61 contentId = contentIdProperty.getValue()/>
62 <#if contentId ? has_content>
63 <#assign journalArticleSub = journalArticleService.getLatestArticle(groupId,contentId)/>
64
65 <#if journalArticleSub?has_content>
66 <#-- obtener el contenido de la categoría actual -->
67
68 <#assign document = SAXReaderUtil.read(journalArticleSub.getContentByLocale(locale))
69 paginaDetalleNode = document.selectSingleNode("/root/dynamic-element[@name='paginaDetalle']/dynamic-content")
70 />
71 <#if paginaDetalleNode?has_content && paginaDetalleNode.getText()?has_content>
72 <#assign pageDetail = paginaDetalleNode.getText()/>
73 <#if (pageDetail?index_of("@")>0)>
74 <#assign pageDetailPosition = (pageDetail?index_of("@")-1)
75 pageDetail = pageDetail[0..pageDetailPosition]
76 layoutDetail = layoutLocalService.getLayout(themeDisplay.getScopeGroupId(),false,pageDetail?number)
77 />
78
79 </#if>
80 </#if>
81
82 </#if>
83 </#if>
84 </#if>
85 <#assign categoryUrl = PortletURLFactoryUtil.create(request, "com_liferay_asset_categories_navigation_web_portlet_AssetCategoriesNavigationPortlet", layoutDetail.getPlid(), PortletRequest.RENDER_PHASE)/>
86 ${categoryUrl.setParameter("categoryId",categoryAncestor.getCategoryId()+"")}
87
88 <#if categoryAncestor.isRootCategory()>
89 <#assign breadCrumbContent = "<li class='breadcrumb-item'><a href='"+categoryUrl+"'>"+languageUtil.get(locale,"transparencia.breadcrumb-portal")+" </a> </li>"+breadCrumbContent/>
90 <#else>
91 <#assign breadCrumbContent = "<li class='breadcrumb-item'><a href='"+categoryUrl+"'>"+categoryAncestor.getName()+" </a> </li>"+breadCrumbContent/>
92 </#if>
93
94 </#foreach>
95
96 ${breadCrumbContent}
97
98 </#if>
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>
Se ha producido un error al procesar la plantilla.
Java method "com.sun.proxy.$Proxy664.getArticleContent(long, String, String, String, com.liferay.portal.kernel.theme.ThemeDisplay)" threw an exception when invoked on com.sun.proxy.$Proxy664 object "com.liferay.journal.service.impl.JournalArticleLocalServiceImpl@6704f197"; see cause exception in the Java stack trace. ---- FTL stack trace ("~" means nesting-related): - Failed at: ${journalArticleService.getArticleCon... [in template "217051#217099#572289" at line 9, column 17] ----
1<#assign ParamUtil = staticUtil["com.liferay.portal.kernel.util.ParamUtil"]
2 journalArticleService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService")
3 articleId = ParamUtil.getString(request,"articleId", "")
4/>
5
6<#if articleId?has_content>
7 <div class="card flex-md-row mb-4 box-shadow h-md-250">
8 <div class="card-body d-flex flex-column align-items-start">
9 ${journalArticleService.getArticleContent(groupId, articleId, "VIEW", languageUtil.getLanguageId(request), themeDisplay)}
10 </div>
11 </div>
12</#if>