Site Map
An error occurred while processing the template.
Java method "com.liferay.portal.model.impl.LayoutImpl.getChildren(com.liferay.portal.kernel.security.permission.PermissionChecker)" threw an exception when invoked on com.liferay.portal.model.impl.LayoutImpl object "{\"mvccVersion\": 20, \"ctCollectionId\": 0, \"uuid\": \"12d794e1-a564-8fb7-09cc-672b9e6698d7\", \"plid\": 33151202, \"groupId\": 182, \"companyId\": 155, \"userId\": 117565, \"userName\": \"Lara Cristina Amaral dos Santos\", \"createDate\": \"Wed Nov 05 17:38:03 WET 2025\", \"modifiedDate\": \"Wed Nov 05 17:48:08 WET 2025\", \"parentPlid\": 5798904, \"privateLayout\": false, \"layoutId\": 2892, \"parentLayoutId\": 83, \"classNameId\": 0, \"classPK\": 0, \"name\": \"<?xml version='1.0' encoding='UTF-8'?><root available-locales='pt_PT' default-locale='pt_PT'><Name language-id='pt_PT'>Campanha 2025</Name></root>\", \"title\": \"\", \"description\": \"\", \"keywords\": \"\", \"robots\": \"\", \"type\": \"link_to_layout\", \"typeSettings\": \"groupId=182\nlayout-template-id=2_columns_ii\nlayoutUpdateable=true\nlinkToLayoutId=2893\nprivateLayout=false\n\", \"hidden\": false, \"system\": false, \"friendlyURL\": \"/efetuados-campanha2025\", \"iconImageId\": 0, \"themeId\": \"classic_WAR_classictheme\", \"colorSchemeId\": \"\", \"styleBookEntryId\": 0, \"css\": \"\", \"priority\": 0, \"faviconFileEntryId\": 0, \"masterLayoutPlid\": 0, \"layoutPrototypeUuid\": \"\", \"layoutPrototypeLinkEnabled\": false, \"sourcePrototypeLayoutUuid\": \"\", \"publishDate\": \"Wed Nov 05 17:38:03 WET 2025\", \"lastPublishDate\": null, \"status\": 0, \"statusByUserId\": 117565, \"statusByUserName\": \"Lara Cristina Amaral dos Santos\", \"statusDate\": \"Wed Nov 05 17:38:03 WET 2025\"}"; see cause exception in the Java stack trace.
----
FTL stack trace ("~" means nesting-related):
- Failed at: @displayPages depth=(depth + 1) pages... [in template "155#195#33359298" in macro "displayPages" at line 48, column 49]
- Reached through: @displayPages depth=(depth + 1) pages... [in template "155#195#33359298" in macro "displayPages" at line 48, column 49]
- Reached through: @displayPages depth=1 pages=entry.get... [in template "155#195#33359298" at line 21, column 65]
----
1<div class="span12 mapaIfap">
2
3<h1 id="genericPageTitle"><span class="webContentPageTitle">${languageUtil.get(locale, "ifap.site.map.title")}</span></h1>
4 <#if entries?has_content>
5 <ul id="ifap_map">
6 <li >
7 <span class="caret caret-down">IFAP</span>
8 <ul class="nested active">
9 <#list entries as entry>
10 <#if (getterUtil.getBoolean(showHiddenPages) || !entry.isHidden()) &&
11 layoutPermission.containsWithoutViewableGroup(permissionChecker, entry, "VIEW")>
12 <li>
13 <#assign showCaret = "no_caret" />
14 <#if entry.hasChildren()>
15 <#assign showCaret = "caret" />
16 </#if>
17 <span class="${showCaret}">
18 <a href="${portalUtil.getLayoutURL(entry, themeDisplay)}">${entry.getName(locale)}</a>
19 </span>
20
21 <@displayPages depth=1 pages=entry.getChildren(permissionChecker) />
22 </li>
23 </#if>
24 </#list>
25 </ul>
26 </li>
27 </ul>
28 </#if>
29</div>
30<#macro displayPages
31 depth
32 pages
33>
34
35<ul class="nested">
36 <#if pages?has_content && ((depth < displayDepth?number) || (displayDepth?number == 0))>
37 <#list pages as page>
38 <#if getterUtil.getBoolean(showHiddenPages) || !page.isHidden()>
39 <li>
40 <#assign showCaret = "no_caret" />
41 <#if page.hasChildren()>
42 <#assign showCaret = "caret" />
43 </#if>
44 <span class="${showCaret}">
45 <a href="${portalUtil.getLayoutURL(page, themeDisplay)}">${page.getName(locale)}</a>
46 </span>
47
48 <@displayPages
49 depth=depth + 1
50 pages=page.getChildren(permissionChecker)
51 />
52 </li>
53 </#if>
54 </#list>
55 </#if>
56</ul>
57</#macro>
58
59<script>
60var toggler = document.getElementsByClassName("caret");
61var i;
62
63for (i = 0; i < toggler.length; i++) {
64 toggler[i].addEventListener("click", function() {
65 this.parentElement.querySelector(".nested").classList.toggle("active");
66 this.classList.toggle("caret-down");
67 });
68}
69</script>