I'm creating a template and would like to have the parent page title automatically inserted into the body of the page. I do not want the information to change if the document is moved. Is there a way to do this?
What you can try doing is :
1) set a placeholder for the pagetitle in the template
2) From the blueprint context provider, pass the hardcoded value of the parent page to the template's placeholder.
I dont think there is a way to get the parent of the page thats not already created, but what you can do with blueprint is explicitly set the parent page of the documents rendered by the blueprint.
I'd like to suggest to check the blueprint context (the way as Yagnesh Bhat described) for a property named 'parentPageId' (maybe this is not available in all versions - I just happend to see it in my environment - I cannot refer to docs). Use this to fetch the page from the PageManager and set the value you require to the context.
I found a solution with Create Page Macro that will take the title of the parent page and make them into labels on the newley created page. It was exactly what I needed. Here is the link.... https://marketplace.atlassian.com/plugins/com.adaptavist.confluence.createpage#support
Badges are a great way to show off community activity, whether you’re a newbie or a Champion.Learn more
An efficient enterprise content management system, or ECM, is a must-have for companies that create work online (cough cough, all companies). If content calendars, marketing plans, and bu...
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!
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