Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How do I reference a page's parent in the excerpt-include macro?

Steve at READY Robotics
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 21, 2019

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

0 votes
Nimo August 17, 2021

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

Lois Jewell August 19, 2021

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 marketplace...it might help you too.

Nimo August 19, 2021

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

0 votes
Lois Jewell August 17, 2020

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
TAGS
AUG Leaders

Atlassian Community Events