Does @parent work in the page tree macro?

This question is in reference to Atlassian Documentation: Page Tree Macro

I'm trying to use the page tree macro and I can't get the @parent value to work for the root parameter.

Ideas?  All that shows is the page with the page tree macro and others at the same level in the hierarchy.

1 answer

0 vote
Steven Behnke Community Champion Sep 09, 2016

Can you explain the desired output? That appears to be working exactly as intended.

image2016-9-9 15:2:35.png

  • '@parent' — will include all pages under the parent of the current page, including the current page.

The way I read the docs, I expected that if I put a page-tree macro in the page (in your example) called "testing page-tree macro" and specify '@parent' as the root - that I would see the page "two reports" and all its child pages in the resulting list. The way it works it seems no different than using '@self'. So, how are self and parent different? I'm not getting it. But, this is my first time trying to use this macro.

I agree, Pamela.

  • '@parent' — will include all pages under the parent of the current page, including the current page.

Using the description of "@parent" above, shouldn't we see "two reports" (parent of "testing page-tree macro") included in the page tree?

Ideally it would be great if this macro would allow you to specify the level of ascendants and descendants. That way on each page of the hierarchy the reader could navigate the page structure, of these specific pages,  without having to rely on the sidebar.  

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Asked 6 hours ago in Confluence

What are the resources that you use to learn more about Atlassian Products?

I am gathering information about resources available for Atlassian product knowledge transferring for a presentation in our local Atlassian User Group. I want to group them in four categories From ...

51 views 3 3
View question

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