Club Deportivo Sacyr - Blog
Publicador de contenidos no está disponible temporalmente.
Se ha producido un error al procesar la plantilla.
Java method "jdk.proxy3.$Proxy79.searchCount(long, long[], long, String, long, String, String, String, String, String, boolean, boolean, int[], boolean)" threw an exception when invoked on jdk.proxy3.$Proxy79 object "com.liferay.asset.internal.service.AssetEntryLocalServiceWrapper@5452c3a"; see cause exception in the Java stack trace. ---- FTL stack trace ("~" means nesting-related): - Failed at: #assign entriesNum = AssetEntryLocalS... [in template "42020#42061#119003234" at line 48, column 21] ----
1<#assign AssetCategoryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetCategoryLocalService")>
2<#assign AssetEntryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryLocalService")>
3<#assign OrderByComparatorFactoryUtil = staticUtil["com.liferay.portal.kernel.util.OrderByComparatorFactoryUtil"]>
4<#assign categoriesOrderBy = OrderByComparatorFactoryUtil.create("AssetCategory", ["name", true])>
5
6<#if (locale == "es_ES") >
7 <#assign categoriesLabelText = "CATEGORÍAS" >
8<#else>
9 <#assign categoriesLabelText = "CATEGORIES" >
10</#if>
11
12
13
14<#if entries?has_content>
15 <#list entries as curVocabulary>
16 <div id="categories-2" class="widget widget_categories">
17 <h4 class="widget-title">${curVocabulary.description}</h4>
18 <ul>
19 <#assign categories = AssetCategoryLocalService.getVocabularyCategories(curVocabulary.getVocabularyId(), -1, -1,categoriesOrderBy) />
20 <#if categories?has_content>
21 <#list categories as category>
22 <#assign categoryID = category.getCategoryId() >
23 <#assign categoryName = category.getName() >
24 <#assign categoryURL = '/web/club-deportivo-sacyr/blog/-/categories/' + categoryID />
25
26 <#assign companyId = category.getCompanyId() >
27 <#assign groupIds = [category.getGroupId()] >
28 <#assign className = "com.liferay.journal.model.JournalArticle" >
29 <#assign statuses = [0,3,7,8] >
30
31 <!--
32 searchCount(long companyId,
33 long[] groupIds,
34 long userId,
35 String className,
36 long classTypeId,
37 String userName,
38 String title,
39 String description,
40 String assetCategoryIds,
41 String assetTagNames,
42 boolean showInvisible,
43 boolean showNonindexable,
44 int[] statuses,
45 boolean andSearch)
46 -->
47
48 <#assign entriesNum = AssetEntryLocalService.searchCount(companyId, groupIds, 0, className, -1, null, null, null, categoryID?string, null, false, false, statuses, true) >
49
50
51 <#if (entriesNum != 0) >
52 <li class="cat-item cat-item-${categoryID}"><a href="${categoryURL}">${categoryName}</a> (${entriesNum})</li>
53 </#if>
54 </#list>
55 </#if>
56 </ul>
57 </h4>
58 </div>
59 </#list>
60</#if>