S'ha produït un error mentre es processava la plantilla.
Java method "static com.liferay.portal.kernel.service.LayoutLocalServiceUtil.getLayout(long, boolean, long)" threw an exception; see cause exception in the Java stack trace.
----
FTL stack trace ("~" means nesting-related):
- Failed at: #assign pageLayout = layoutLocalServi... [in template "20115#20151#197055" at line 45, column 29]
----
Regidors
1<#if entries?has_content>
2 <div>
3 <div class="row mt-30">
4 <#list entries as curEntry>
5 <div class="col-sm-6 col-md-4 consistori-alcalde">
6 <#assign renderer = curEntry.getAssetRenderer() >
7 <#assign entry = renderer.getArticle() >
8 <#assign document = saxReaderUtil.read(entry.getContentByLocale(locale.toString())) >
9 <#assign rootElement = document.getRootElement() >
10 <#assign imgXPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='Imatge']") >
11 <#if imgXPathSelector.selectSingleNode(rootElement)??>
12 <#assign imgXml = imgXPathSelector.selectSingleNode(rootElement).getStringValue() >
13 <#if imgXml?trim?has_content>
14 <#assign imgJson = jsonFactoryUtil.createJSONObject(imgXml)>
15 <#assign img = "/documents/"+ imgJson.groupId +"/" +imgJson.fileEntryId +"/"+ imgJson.name +"/"+imgJson.uuid >
16 <#else>
17 <#assign img = "">
18 </#if>
19 <#else>
20 <#assign img = "" >
21 </#if>
22 <#assign locationXPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='Pagina']") >
23 <#if locationXPathSelector.selectSingleNode(rootElement)??>
24 <#assign link = locationXPathSelector.selectSingleNode(rootElement).getStringValue() >
25
26 <#if link?trim?has_content>
27 <#list link?split("@") as item>
28 <#if item_index == 0>
29 <#assign linkPageId = item?eval>
30 </#if>
31 <#if item_index == 1>
32 <#if item == "private">
33 <#assign linkPrivate = true>
34 <#else>
35 <#assign linkPrivate = false>
36 </#if>
37 </#if>
38 <#if item_index = 2>
39 <#assign linkGroupId = item?eval>
40 </#if>
41 </#list>
42
43 <#-- get layout -->
44 <#assign layoutLocalService = staticUtil["com.liferay.portal.kernel.service.LayoutLocalServiceUtil"]>
45 <#assign pageLayout = layoutLocalService.getLayout(linkGroupId, linkPrivate, linkPageId)>
46
47 <#-- get Friendly URL -->
48 <#assign portalUtil = staticUtil["com.liferay.portal.kernel.util.PortalUtil"]>
49 <#assign friendly_page_link = portalUtil.getLayoutFriendlyURL(pageLayout, themeDisplay)>
50
51 <a href="${friendly_page_link}">
52 <#else>
53 <a href="${assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse, curEntry, false)}">
54 </#if>
55 <#else>
56 <a href="${assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse, curEntry, false)}">
57 </#if>
58
59 <figure class="consistori-element" style="background-image: url('${img}');">
60 <figcaption class="consistori-text">
61 <h3 class="consistori-title">${curEntry.getTitle(locale)}</h3>
62 <div class="consistori-desc">${curEntry.getDescription(locale)}</div>
63 </figcaption>
64 </figure>
65 </a>
66 </div>
67 </#list>
68 </div>
69 </div>
70</#if>