Buscar
Se ha producido un error al procesar la plantilla.
For "." left-hand operand: Expected a hash, but this has evaluated to a sequence (Collections$UnmodifiableRandomAccessList wrapped into f.t.DefaultListAdapter):
==> staticUtil["com.liferay.asset.kernel.service.AssetCategoryLocalServiceUtil"].dynamicQuery(q) [in template "282536#282574#299042" at line 12, column 64]
----
FTL stack trace ("~" means nesting-related):
- Failed at: #assign categoryObj = staticUtil["com... [in template "282536#282574#299042" at line 12, column 41]
----
1<#if entries?has_content>
2 <div class="panel">
3 <div class="panel-body">
4 <h6>Categorías</h6>
5 <div class="category-icon-container">
6 <#list entries as page>
7 <#assign catName = page.getName(locale) />
8 <#assign categoryClass = staticUtil["com.liferay.portal.kernel.util.ClassResolverUtil"].resolveByPortalClassLoader("com.liferay.asset.kernel.model.AssetCategory") />
9 <#assign q = staticUtil["com.liferay.portal.kernel.dao.orm.DynamicQueryFactoryUtil"].forClass(categoryClass) />
10 <#assign VOID = q.add(staticUtil["com.liferay.portal.kernel.dao.orm.RestrictionsFactoryUtil"].eq("name", catName)) />
11 <#assign VOID = q.add(staticUtil["com.liferay.portal.kernel.dao.orm.RestrictionsFactoryUtil"].eq("groupId", scopeGroupId)) />
12 <#assign categoryObj = staticUtil["com.liferay.asset.kernel.service.AssetCategoryLocalServiceUtil"].dynamicQuery(q).get(0) />
13
14 <#assign
15 AssetEntryServiceUtil = staticUtil["com.liferay.asset.kernel.service.AssetEntryServiceUtil"]
16 PortalUtil = staticUtil["com.liferay.portal.kernel.util.PortalUtil"]
17 assetEntryQuery = objectUtil("com.liferay.asset.kernel.service.persistence.AssetEntryQuery")
18
19 blogClassName = "com.liferay.blogs.model.BlogsEntry"
20
21 catIds = [categoryObj.categoryId]
22 >
23 ${assetEntryQuery.setAllCategoryIds(catIds)}
24 ${assetEntryQuery.setClassName(blogClassName)}
25 <#assign resultsCount = AssetEntryServiceUtil.getEntriesCount(assetEntryQuery)>
26
27
28 <#assign
29 cssClass = ""
30 url = ""
31 />
32 <#if page.getExpandoBridge().getAttribute("icon-class")??>
33 <#assign cssClass = page.getExpandoBridge().getAttribute("icon-class") >
34 </#if>
35 <#if portalUtil.getLayoutFriendlyURL(page, themeDisplay, locale)??>
36 <#assign url = portalUtil.getLayoutFriendlyURL(page, themeDisplay, locale) >
37 </#if>
38 <a class="category-icon ${cssClass}" href="${url}">
39 ${page.getName(locale)} (${resultsCount})
40 </a>
41 </#list>
42 </div>
43 </div>
44 </div>
45</#if>
