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

No takers on this one?

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted 2 hours ago in Off-topic

Miscellaneous Monday - CreatatronV3

You may remember, not so long ago, that together we invented the most evil of machines: The Destructo5000!  The effects of missing Durian rippled over nations. Complete chaos as goat chee...

36 views 2 2
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