Se ha producido un error al procesar la plantilla.
The following has evaluated to null or missing:
==> serviceLocator.findService("com.valencia.liferay.common.utils.api.CommonUtilsApi") [in template "20115#20151#361048" at line 1, column 26]
----
Tip: If the failing expression is known to legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing</#if>. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)??
----
----
FTL stack trace ("~" means nesting-related):
- Failed at: #assign commonUtilsApi = serviceLocat... [in template "20115#20151#361048" at line 1, column 1]
----
1<#assign commonUtilsApi =serviceLocator.findService("com.valencia.liferay.common.utils.api.CommonUtilsApi")/>
2<#assign catPropLocalService = serviceLocator.findService("com.liferay.asset.category.property.service.AssetCategoryPropertyLocalService") />
3<div class="container menu-webs-municipales">
4 <#if entries?has_content>
5 <ul class="row ">
6 <#list entries as navigationEntry>
7 <#assign color = "" />
8 <#assign classPK = navigationEntry.getLayout().getPrimaryKey() />
9 <#assign url = "" >
10
11 <#if locale == "es_ES">
12 <#assign url = navigationEntry.getURL()>
13 <#else>
14 <#if navigationEntry.getLayout().getExpandoBridge().getAttribute("Enlace_Val")?has_content>
15 <#assign url = navigationEntry.getLayout().getExpandoBridge().getAttribute("Enlace_Val")>
16 <#else>
17 <#assign url = navigationEntry.getURL()>
18 </#if>
19 </#if>
20
21 <#assign categories = commonUtilsApi.findLayoutWebMunicipal(themeDisplay.getCompanyId(),themeDisplay.getUserId(),themeDisplay.getScopeGroupId(),classPK) />
22
23 <#list categories as c>
24 <!--categoria: ${c.getCategoryId()}-->
25 <#assign vocabularyId = c.getVocabularyId()>
26 <!--${vocabularyId}-->
27 <#if vocabularyId == 379447>
28 <#assign subtitulo = c.getTitle(locale) />
29 <#assign properties = catPropLocalService.getCategoryProperties(c.getCategoryId())>
30 <#if properties?has_content>
31 <#list properties as p>
32 <#if p.getKey() == "Color">
33 <#assign color = catPropLocalService.getCategoryProperty(c.getCategoryId(), "Color").getValue() >
34 </#if>
35 </#list>
36 </#if>
37 </#if>
38 </#list>
39 <li class="col-12 col-sm-6 col-md-4 col-lg-3 extrasmall">
40 <a class="municipal-a-body" href="${url}" target="${navigationEntry.getTarget()}">
41 <div class="municipal-div-card">
42 <div class="municipal-div-img">
43 <#if (navigationEntry.getLayout().getIconImage())>
44 <img class="municipal-img-au" src="/image/layout_icon?img_id=${navigationEntry.getLayout().getIconImageId()}" alt="">
45 </#if>
46 </div>
47 <div class="municipal-div-body pl-3 pr-3" style="background-color:#${color};">
48 <p class="pt-3 municipal-title">
49 ${navigationEntry.getName()}
50 </p>
51
52
53 </div>
54 </div>
55 </a>
56 </li>
57 </#list>
58 </ul>
59 </#if>
60</div>



Buscar