I can't seem to be able to make variables in a template in Confluence. I can't seem to find how to make variables in the system. Where can I find a how to enable variables?
In my case the "Create variable" option is automatically highlighted and so a click on the space key will also do and have the same effect. All you have to avoid is to mouse click somewhere else because this will remove the highlighting and then you get "nothing".
Hi, I did this and I am able to create several variables and they show on my template editing, however, when I go and try to create a page using the template which I included my variables, I expected the different variables (like a "List") show up so I could use the actual field as part of the content.
Am I missing something to make the variable show up when creating the pages? I understood I would create a variable i.e: a List type, and it would show up as a dropdown where I would be able to select all the options I separated by commas when I defined the variable. Isn't this the case?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am having the same issue, it does works when doing a preview of the template but once creating a page using that template my variables will not work.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Mauricio UnderbrinkI think I was able to figure this out, at least partially: instead of trying to edit an existing template, I went ahead and created a NEW template. After doing this, I tried the same approach and created my variables with the intention of having lists, text fields, etc. After doing this, it actually worked, and showed up as part of the page.
Keep in mind something and it's like it works like an initial form, so, it will display and allow the person creating a new page to first only fill out that particular form (set of variable fields) and then, after clicking next (submitting them) you can continue with the rest.
Basically, these fields work as an initial form previous to do the rest of the content on the page. This might sound trivial but for me was different from what I imagined at the beginning, but in any case it worked out (sort of) for me. I hope it does for you.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I don't see that drop down list either and my page looks quite different from the screenshot. And sometimes I also type $ plus something and it won't convert it into a variable. So I also thought I made something wrong but then suddenly it all worked.
Just a guess:
You could have a look at "Settings > Your settings: Editor" and see if you have disabled Autocomplete and/or Autoformatting.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ha, found it. What I should do is type $putnamehere and then simply click on Create variable. Tsss, UID could do better...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
I don't know if I understand your question correctly because to me it seems so easy and self-explanatory:
Create a template:
Add variables:
Perhaps you can be more specific about where you get stuck?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Steffen; thank you for your answer; the problem is when I type the $ or select it nothing happens. I should be able to see a drop down like this: https://confluence.atlassian.com/download/attachments/296093779/Template_edit.png?version=4&modificationDate=1363747479635&api=v2
The problem is I don't see that!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I didn't see it either. The solution is to ensure there are spaces around your cursor before typing the $ sign. If you try to stick the variable right next to a character, it won't work. After inserting the variable, delete the extra spaces.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.