#-- The workspace of a page of the site: the tree of the site on the left, the page and its preview in the middle, the inspector on the right (properties, portlets, adding a portlet, child page). The properties and the child page are the blocks of AdminPageJspBean, loaded in their tab on first display (param_block=2 and 5); a link to AdminSite.jsp?param_block=2 or 5 opens the page with that tab open. --> <#assign rootPageId = 1 /> <#assign pagesById = {} /> <#list site_pages![] as item><#assign pagesById = pagesById + { item.pageId?c: item } />#list> <#assign pagePath = [] /> <#assign pathItem = pagesById[ page.id?c ]! /> <#list 1..64 as guard><#if !pathItem?has_content><#break>#if><#assign pagePath = [ pathItem ] + pagePath /><#assign pathItem = pagesById[ pathItem.parentId?c ]! />#list> <#assign pathIds = pagePath?map( pathPage -> pathPage.pageId?c ) /> <#-- The properties and the child page tabs, and the button adding a child page, only for the users who may manage the page (AdminPageJspBean) --> <#assign canManagePage = can_manage_page!false /> <#-- The portlets tab for the users who may manage a type of portlet, the add tab for those who may create one (RBAC, AdminPageJspBean); without any tab, the sidebar is left out --> <#assign canManagePortlets = can_manage_portlets!false /> <#assign canAddPortlet = ( portlet_types_list![] )?filter( type -> type.name != '' )?has_content /> <#-- The extensions tab when plugin extend gives the page actions (ExtendableResourcePluginActionManager, extendable_resource_actions_list.html) --> <#assign extendActions = ( extendableResourceActionsHtml!'' )?trim /> <#assign hasExtend = extendActions?has_content /> <#assign hasInspector = canManagePage || canManagePortlets || canAddPortlet || hasExtend /> <#assign activeTab><#if canManagePage><#switch param_block!0><#case 2>properties<#break><#case 5>childpage<#break><#default>#switch>#if>#assign> <@pageContainer class='lutece-admin-site'> <@pageColumn>