I see examples of just defining and using the variable just one time in the confluence template. But I haven't got to understand how I can define once and use it multiple times in my template.
Please provide example if possible.
@Lakshmi Anantha Nallamothu The value of the variable is defined when you create a page from the template. If you insert the same variable in multiple places in your template (by copying it to make sure it has the same parameters), whatever value the person creating the page enters for the first instance is used in all other instances.
For example, if your template includes:
feature_name Overview
The feature_name feature is intended to …
feature_name Requirements
(using an underline to indicate the variable). The template will prompt for a value for this variable only once (since it's the same variable each time). If the page creator sets the feature_name variable to New Feature 1, the content of the new page would be:
New Feature 1 Overview
The New Feature 1 feature is intended to …
New Feature 1 Requirements
Hi @Lakshmi Anantha Nallamothu
Have you tried just using it multiple times? Below I created 1 variable and copied it onto my template multiple times. When creating a page and using the template, I typed in the value 'cookies' once and it populated all the instances of the variable.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Shawn Doyle - ReleaseTEAM Thanks for the reply. I don't want to copy the variable multiple times rather define once at top and they interpolate something like @Variable_name ..etc. But If there is no option to do this, then I may end up copying the Variable definition at all the places, which doesn't look good.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.