[All Adaptavist Apps]

Page tree

Moved from https://www.adaptavist.com/display/Builder/builder-hide+macro?focusedCommentId=45976364&#comment-45976364

We want to stop the dashboard pagetree from being displayed on the bottom of the login, personal spaces, search and labels pages.

Basically we want to supress the following chunk of html from selected pages:

<script type="text/javascript" language="JavaScript" src="/confluence/s/1515/105/3.3.5-conf210/_/download/resources/com.adaptavist.confluence.themes.sitebuilder%3Asitebuilder/js/pagetree.js"></script>
<div class="pagetree ">
<script type="text/javascript">
(function ()
{function init()
{if (typeof(PageTreeManager)=="undefined" || typeof(dwr.engine)=="undefined" || typeof(PageTreeDWR)=="undefined") return setTimeout(init,250);
PageTreeManager.generateTree({id:"<at:var at:name="DASHBOARD" />", title:"Dashboard", type:"dashboard", tooltip:"Confluence", url:"/confluence/dashboard.action", editPermission:false, createPermission:false, administerPermission:true},{target:"_self", showIcons:true, selectionMode:"node", autoCollapse:false, indent:true, showRoot:true, branchStyle:"", iconStyle:"computer", openpage:true, name:"", preload:['null',null], allowdrag:false, sort:"natural", reverse:false, titletip:false, iconpath:"/s/1515/105/3.3.5-conf210/_/download/resources/com.adaptavist.confluence.themes.sitebuilder%3Asitebuilder/icons/"},"/confluence").render();}
init();
})();
</script>
</div>

Alain Moran suggested "perhaps you need to think about things from the opposite direction ... where do you WANT the tree to be displayed?"

However the inclusion of the dashboard pagetree doesn't appear to be something we have done & checking a dump of the BuilderBackup XML doesn't provide anything obvious we can control.

  • No labels

1 Comment

  1. Unknown User (scayla)

    I've never seen a pagetree at the bottom of the login page.
    Are you working from a brand new layout done by yourself ? Or someone may have created a user macro embedding the pagetree macro, then inserted it in the bottom of a layout applied to the @GLOBAL@ theme in builder admin ? Or even created another layout, inserting the pagetree, then used

    {builder-show:action=login,logout}{use-layout:theotherlayout}{builder-show}

    in the previous layout...