Can I pass names/variables to child pages?

Hi all,

We're currently using a combination of the create-page macro, create-child macro, and Confluence templates to spontaneously create a new page with child pages at the click of a button. So I can create a new page "Mazda" and a structure like so:

Mazda 323

  • Service History
  • Specs
  • Owner History

And that works just lovely. Unfortunately, if I leave the above as is and then create a new page "Ford" through the same method, we end up with:

Ford Focus

  • Service History 1
  • Specs 1
  • Owner History 1

And so forth, because Confluence doesn't like pages with the same name within the same space (and fair enough, too).

My question is this - can I somehow pass a variable 'down the line' to these pages? The create-page macro allows me to prefix and postfix %parenttitle% for example, but unfortunately it seems that create-child doesn't... unless I'm not using it correctly. Ideally I'd like to be able to do something like this:

Ford Focus

  • Focus Service History
  • Focus Specs
  • Focus Owner History

Anyone tried something similar?

1 answer

This widget could not be displayed.

No takers on this one?

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in Teamwork

What teamwork quotes inspire you?

Hey everyone! My name is Natalie and I'm an editor of the Atlassian Blog and I've got a question for you: What's your favorite quote about teamwork?  We've compiled a list here, along with...

151 views 16 7
Join discussion

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