Seems I am missing a detail or two regarding the instructions in the "Create your own template" section "Variables".
My objective is to create a "New Variable" in my template called "tablename", this way when my mate introduces a value in such field, the "tablename" is shown automatically in all the places of the Page where is needed (a dozen of them).
However, and following the instructions, I am unable to do so. And there are behaviors expected, according to the docs, which are not happening to me.
First: I create a New Template
Then, in the Template I choose Template > New Variable from the editor toolbar. This opens a dialog which by default shows "variable_name". I decided to rename it to "table_name" I press Enter (by default this creates a single-line text input field).
All correct until this point.
Now the misleading part from the documentation:
"Type $ and the variable name, then press Enter to add a new variable or to select an existing variable from a list of suggestions. The suggestions dialog shows variables already defined in this template."
Wait, I have already added a New Variable. Why should I need to write $table_name to add (?) a new variable?
On the other hand, and if I understand this instruction correctly if I type "$" in any place of the document, the Template will show me a list of suggestions, right? Well. Such list of suggestions is not being shown to me at all.
Now I feel I am starting to get lost...however let's continue:
So basically in the template in the paragraph where I want the "tablename" to appear I understand I should write something like "The name of the table is $table_name" and that would magically be transformed to "The name of the table is product_details" as soon as my mate fills the "tablename" field with "product_details", no? Well at least I understand such, so I did so.
Finally I go to my Confluence Space and I add a Page based in this Template, however as soon as I click in the template the Page to edit is not opened and no warning is risen. Just the dialog of availables Templates is there staring me, and no matter how many times I click in the "My Template" nothing happens.
So?What am I missing?
tl;dr I don't think you're misunderstanding/doing anything wrong. I think something with template variables is broken in Confluence right now. You may just have a case of bad timing.
Several people on my team have been using templates with variables to create pages over the past year. Starting yesterday, attempts to create pages from templates that use variables have begun to fail in exactly the same way you describe in your last paragraph. Once the template-selection modal goes away, nothing happens.
I'll open a ticket with Confluence support right now. You might too.
👋 Hi there, a few of us at Atlassian would love to learn about how you use "space settings" functionality in Confluence. A facelift to the space settings is long overdue and we want to start with im...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events