Page tree not visible on space calendar page
Asked by Jonathan Smith:

On Confluence server, why is the **page tree** not visible when on the **space's calendar page**? Space shortcuts are visible... This doesn't make much sense to me.

Have a great day pondering my question :D

Confluence server 6.6.1


Answers:
author: Shannon S
body: Hi Jonathan,

How are you viewing the calendar exactly? There are two ways:

1. Via **your-site/calendar/mycalendar.action** \> this won't display the page tree as you are in the Team Calendars app, and not within a specific space in Confluence.
2. Via a page in Confluence, by adding the Team Calendars Macro to a page. Here you should see the space tree.

Can you confirm? If needed, please feel free to share a screenshot of the issue.

Regards,

Shannon

comments: author: Jonathan Smith
body: When clicking the Calendar link on the left navigation (which is generated when creating the space), this takes us to the calendar page (for this space) but the page tree is invisible.

I checked a few spaces, same result.

![b.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/42161i182DC183CDC4BB89/image-size/large?v=v2&px=999 "b.jpg")


author: Shannon S
body: Thank you, Jonathan.

As the Calendars page as well as Pages and Blog are not part of the space's page tree, the page tree does not display on those pages.

We had a feature request for this in the past, but it has been closed as we do not intend to implement this in the near future.

* [CONFSERVER-52339](https://jira.atlassian.com/browse/CONFSERVER-52339) *Make page tree visible when viewing calendars or questions*

As a workaround, I recommend the following from our [Configure the Sidebar](https://confluence.atlassian.com/doc/configure-the-sidebar-317194694.html) documentation:
>
> Adding custom content to a sidebar {#toc-hId-1851696893}
> --------------------------------------------------------
>
> You can further customize a sidebar using wiki markup to add custom content.
>
> **To add custom content to your sidebar:**
>
> 1. Go to the space and choose **Space tools** \> **Look and Feel** from the bottom of the sidebar.
> 2. Choose **Sidebar, Header and Footer**.
> 3. Enter your custom content in the **Sidebar** field.
>
> To hide the default page tree and add your own, with additional parameters:

1.
   > Add the wiki markup for the [Page Tree Macro](https://confluence.atlassian.com/doc/page-tree-macro-163414255.html) in the **Sidebar** field.   
   > The following example includes parameters to expand the top three levels of the page tree by default and include an **Expand All** and **Collapse All** link above the tree.  
   >
   >     {pagetree:root=Page Name|startDepth=3|expandCollapseAll=true}

2.
   > Go to **Space Tools** \> **Configure sidebar**.
3.
   > Use the **Show** and **Hide** icons to hide the default page tree from the sidebar.

Please see [Page Tree Macro](https://confluence.atlassian.com/doc/page-tree-macro-163414255.html) for information on how to call specific parameters, but simply typing {pagetree} will show the page tree for the current space.

I've tested this and can confirm it works on my current version of Confluence, 6.11, even if you are on the Calendars page. I have also added this workaround to the above feature request.

Could you give it a try and let me know how it goes?

Regards,

Shannon


author: Jonathan Smith
body: [@Shannon S](/t5/user/viewprofilepage/user-id/510046)

Thanks for the work around! I tested this in UAT, looks like it works fine.

If **\***worked for root, I would consider this a perfect workaround. Sadly root's value has to be modified to the root's page name for each space.


author: Shannon S
body: Johanthan,

Thank you for confirming that.

You might be able to set the sidebar globally using the Global Stylesheet:

**To edit your global CSS stylesheet:** Choose ![](https://confluence.atlassian.com/doc/files/747833194/747833195/2/1517274813281/cog.png) \> **General Configuration** \> **Stylesheet**.

Can you give that a try as well?

Regards,

Shannon


Tags: confluence-server

server