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

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 do I reference a page's parent in the excerpt-include macro?

I am creating a page template that has an excerpt-include macro. This template is meant to be used to create child pages to a requirements page, which always has an excerpt in it. Whenever a user creates a page from this template, I would like the excerpt-include macro to pull that excerpt from the parent page.

It seems the only way I can reference pages in the excerpt-include macro is by their specific name, not by a more generic "parent page". How can I do this? What do I put in the "Page Containing the Excerpt" box to reference the current page's parent?

2 answers

I am also looking for this. Did anyone find a way to implement it?

Hi, I achieved the outcome I was looking for only because we're also using the Page Tree Creator tool to create templates. Because we follow a naming convention and the template would always be launched in the same place, I was able to use 'tags' in the Excerpt Include Macro to generate what the parent page name would be. Check out Page Tree Creator in the might help you too.

Thank you very much Lois! 
I'm unsure my company will allow me to add plugins to Confluence, but I will check it out!

I'm searching for the same answer at the moment. Did you have any luck?

Suggest an answer

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

Confluence Mythbusters: Does Atlassian even use Confluence?

Hi, Confluence collaborators! As part of #Confluence-Collaboratory month, we’ve created a very special Mythsbusters segment, where we're dive into an interesting myth and uncover the truth behind i...

1,366 views 7 28
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