Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to insert the value of a variable in a page template.

Tim Calladene January 28, 2019

When creating a page template, I want to add some variables that the user enters when creating the page.

Then, within the same page, I want to be able to insert the value previously specified by the user for a particular variable. However, when attempting to do this in Confluence, it creates 2 separate variables with text boxes for each.

For example, I want to specify a version number for a release note, so I create the variable $AppVersion.

Release Note for Application v$AppVersion.

Then later on in the same page I want to include some text like this:

Run the installer with the filename ApplicationInstaller_v$AppVersion.msi

 

However, when I attempt to do this, Confluence seems to create a new variable with the name $$AppVersion, and inserts another textbox. I don't want this, I want the value the user previously entered.

 

1 answer

0 votes
Fabienne Gerhard
Community Champion
January 28, 2019

Hi @Tim Calladene

which browser did you use? When you're adding the Application Installer variable thing you should be able to choose from existing variable as you've already created it. 

If you're using Chrome - there is a known issue CONFSERVER-35911 which should already been fixed(according which version you use).

I made similar experiences you mentioned in Chrome. So maybe using another browser may help. Also have a look if the variable can be chosen after you created it for the first time.

Tim Calladene January 28, 2019

Hi @Fabienne Gerhard

I am using Chrome, however I've also tried this using Internet Explorer and it has the same behaviour. I'm using v6.6 of Confluence.

If I create a variable "VersionNumber", when it gets added to the list of variables it appears as $VersionNumber. If I think want to insert this variable, Confluence creates a new variable with the name $$VersionNumber.

See the following screenshots:

ConfBug1.png

Tim Calladene January 28, 2019

For some reason, I cannot post any more images showing the $$Version status

Tim Calladene January 28, 2019

I've done some more testing, and it seems that variables only work correctly when using Firefox browser. They do not work in either Internet Explorer or Chrome browsers.

Fabienne Gerhard
Community Champion
January 28, 2019

Should have mentioned that I used Firefox to create the templates. IE is a f***ing nightmare and with Chrome I also had this problem.  Sorry for not responding earlier. 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events