How can I define a variable once in a space template and refer to its contents later in the same pag

Apologies if this is extremely obvious and explained elsewhere.

I am creating a template for deployment instructions. I want to define a set of environmental variables once at the top of a page, and refer to the contents of these variables later in the page.

For example I want to define a version number variable once, and use its contents within the page at several places. This will be contained within pathnames etc.

Another variable would be the database name. Once defined this should be present in multiple places within the page created by the template.

Any pointers will be appreciated.




1 answer


I have answered my own question!

If I define a variable once at the top of my template, and refer to it in the same way throughout my template, pages created using this template correctly contain the referred values.


Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Monday in Confluence

Organizing your space just got easier - Page Tree Drag & Drop is here

Hi Community! I’m Elaine, Confluence Product Manager. You may have read my earlier post about page tree in space navigation sidebar. I'm excited to share another improvement that helps you organize ...

62 views 3 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