Any way to show contents of different space with pagetree macro?

According to this bug:

https://studio.plugins.atlassian.com/browse/PGTR-94

You can't show the contents of a difference space in a pagetree, but I was wondering if anyone had a workaround short of fixing and then recompiling the plugin (assuming the source is available).

matthew horn

3 answers

1 accepted

1 vote

I have tried a workaround in the past where I created pages in the current space that includes pages from other spaces using page include macro.

The content in this case will be maintained in a single place but is available in both the spaces - including in the page tree of both spaces. Not sure if it will work for you or not!

Hah! I just thought of trying that. Thanks, guys, I'll give it a whirl.

The way my site is structured, is that every "area" of the site (like Documentation, What's New, Samples, and Tutorials) has a separate space for a landing page and a content space. We do this because the landing pages are highly customized mix of HTML and CSS.

The results are stunning (if I do say so myself), but issues like this are real setbacks if not worked around.

matthew horn

We did something similar. I have a page named LocalSearch in each space (use Browse Pages then add your page here, so that it is not under the root of the home page). This page just includes the pagetree macro.

So instead of using the pagetree macro, use the IncludePage macro specifying the spacekey of the space you want to search, and the LocalSearch page that you made.

Tried it and it works great. Thanks again!

matt

Brilliant. A quick and easy fix. Thanks!

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

344 views 20 10
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you