Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to auto-expand sidebar page tree to show children of current page?

Server version 6.10.1

In the sidebar, i'd like my users to click a parent page, not expand it, but click it, then when the page loads, it has expanded the child pages to show what's included. 

In the Space Tools sidebar box, i've got {pagetree:startDepth=2}, but {pagetree:startDepth=2|root=@self} doesn't work, like it does for the Page Tree macro. It errors off, saying "The root page @self could not be found in space WD NMCI." 

I've tried some others from the page tree macro, but it never works. https://confluence.atlassian.com/doc/page-tree-macro-163414255.html

root=@parent returns "Error formatting macro: pagetree: java.lang.NullPointerException"

Obviously the sidebar isn't the same as the macro...



2 answers

1 accepted

1 vote
Answer accepted

Oh. I'm dumb. Apparently the functionality i'm looking for is enabled by default...... if you aren't using startDepth.

I've had startDepth enabled this whole time. Never thought to not use it. Would be nice is we could use startDepth and have this functionality work also.

So we're just going to remove startDepth, move the pages we want up one level and call it a day.

Hi, I have a similar problem. I use the page tree macro in the sidebar. I added the macro by using wiki markup in the sidebar section (within the space configuration) like this:

 

{pagetree:root=WKI Home|sort=position|excerpt=false|reverse=false|expandCollapseAll=false|startDepth=1|searchBox=false}

 

I would like my users to see (only!) the child pages of the current page. How can I achieve this? I followed Frank's suggestion and removed the startDepth parameter but nothing changed. Still, the child pages of the current page are not showed.

Additional information: We use server version 7.4.1

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Confluence

Announcing Team Calendars in Confluence Data Center

Hi Community! We're thrilled to share that Team Calendars for Confluence is now a built-in feature for Confluence Data Center releases 7.11 and beyond.  A long time favorite,  Team Cale...

82 views 0 3
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you