Confluence: Page Tree Macro for another space
Asked by R Donato:

Hello,

I want to use the **Page Tree Macro** in one space to list the pages in another space. Unfortunately, even though I specify the space I want to use, the macro doesn't recognize the page I want for the top level.

In the images, you can see that I've specified the **Root Page** and the **Restrict to this Space Key**.

* **For Root Page:** I started typing and the page I was looking up displayed in the list, so I selected it.  
  page.png
* **For Restrict to this Space Key:** I entered the name and the Space Key displayed as it should and I selected it.  
  space.png

Yet, I get an error message. Does anyone know how I can get this to work?

page tree.PNG

Thanks,

Rosemary  
[](https://community.atlassian.com/t5/Confluence-questions/Confluence-Page-Tree-Macro-for-another-space/qaq-p/222051?attachment-id=10548){#link_1188a7638d03fb}  
[](/tnckb94959/attachments/tnckb94959/confluence-questions/37638/1/space.png){#display_1188a7638d03fb_0}  
[](https://community.atlassian.com/t5/Confluence-questions/Confluence-Page-Tree-Macro-for-another-space/qaq-p/222051?attachment-id=10549){#link_1188a7638d03fb_0}  
[](/tnckb94959/attachments/tnckb94959/confluence-questions/37638/2/page.png){#display_1188a7638d03fb_2}  
[](https://community.atlassian.com/t5/Confluence-questions/Confluence-Page-Tree-Macro-for-another-space/qaq-p/222051?attachment-id=10550){#link_1188a7638d03fb_1}  
[](/tnckb94959/attachments/tnckb94959/confluence-questions/37638/3/page%20tree.PNG){#display_1188a7638d03fb_4}


Answers:
author: R Donato
body: Turns out the solution to my problem is to use the Children Display macro instead of using either Table of Contents macros.


author: Davin Studer
body: Remove the 80: from the beginning of the Root Page and then set the space key. Not sure why it puts the space key in the Root Page field when it has a field for the space. Probably a bug.


author: R Donato
body: It's moving in the right direction, but it still doesn't work. I removed the '80:'

In Preview mode, the tree displays.

PgTreePreview.jpg

But after saving the layout, the Loading wheel begins and doesn't resolve.

I removed the Expand All option, hoping that making the macro as simple as possible would fix it without effect. I also tried both macro versions of the page tree. Neither work.

Result.jpg

Any other suggestions? It's so close to working. I'm on 5.6.1. Could it be a bug in that version?  
[](https://community.atlassian.com/t5/Confluence-questions/Confluence-Page-Tree-Macro-for-another-space/qaq-p/222051?attachment-id=6150){#link_1188a77572e9eb}  
[](/tnckb94959/attachments/tnckb94959/confluence-questions/37640/1/PgTreePreview.jpg){#display_1188a77572e9eb_0}  
[](https://community.atlassian.com/t5/Confluence-questions/Confluence-Page-Tree-Macro-for-another-space/qaq-p/222051?attachment-id=6151){#link_1188a77572e9eb_0}  
[](/tnckb94959/attachments/tnckb94959/confluence-questions/37640/2/Result.jpg){#display_1188a77572e9eb_2}

comments: author: Alok Juneja
body: As of today on Confluence cloud, the page tree macro does not pull the pages from the other workspace.

Any one know more about it.


Tags: confluence-administration