Why does variables from a custom template do not appear on page

Ananth Subramanian March 27, 2023

Hi,

I created a template and add certain variables to it. But when I try to create a page from it the page appear blank. This question has been raised before as well but I could not see an answer to resolve this. Can someone help?

 

Regards

Ananth

4 answers

1 accepted

0 votes
Answer accepted
Alex Koxaras _Relational_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 28, 2023

Hi @Ananth Subramanian and welcome to the community,

Can you please post a screenshot of your template, as well as a screenshot of when you try to create a page with that template (prior of publishing it)?

Alex Koxaras _Relational_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 28, 2023

@Ananth Subramanian thank you for sharing the images. Can you also please share your template while editing it? What type of variables did you use in it?

Alex Koxaras _Relational_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 28, 2023

On my instance variables are working just fine:

 

1, While choosing the template

template01.png

2 Before publishing it

template02.png

3. After publishing it

template03.png

 

I would advise you to try the following:

  • Remove all the square brackets from the variable names. Don't user special character
  • Keep ONE name on the variable, or in case of many words use either hyphen (_) or minus/dash (-) to connect words
  • For closed variables it's best to use the list variable, rather than the text

 

Do the above and let me know if that solved your problem.

Like Ananth Subramanian likes this
Ananth Subramanian March 28, 2023

Hi Alex,

good catch!! after removing special characters I can get the template to produce the desired result. Super thanks!!

 

Additionally, is it possible to have this directly appear in the title of the page instead? if that is not possible then how to automatize title of the page when you create a page from a template? 

ps: should i raise this a separate question?? please let me know

Alex Koxaras _Relational_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 28, 2023

HI @Ananth Subramanian 

No you can't have it directly on the title.

To automate it, the only thing I can think of is to use (if you are on a premium plan) an automation to send a web request using the REST API and change the title. But it's too fuss...

Ananth Subramanian March 28, 2023

thanks Alex for your help and time :)

0 votes
james November 28, 2023

This is a known bug. In many cases, removing special characters does not fix the issue. I can create text variables and enter only a single letter with no spacing, special characters etc. and it doesn't show up when editing the page.

For anyone looking for a solution rather than a workaround, add your vote to this bug report:
https://jira.atlassian.com/browse/CONFCLOUD-66456

0 votes
Ananth Subramanian March 28, 2023

Hi Alex,

I share an example of the first variable -and it is the same for all the other variables as well. I hope this is what you meant

 

template_in_edit_mode

template_edit.png

Variable_type

 

template_type.png

0 votes
Ananth Subramanian March 28, 2023

Hi,

Thanks for the reply. please find below what you asked for 

Template -

 template.png

- creating page from the template by filling in the variables (before clicking on "create button")

create_page_template.png

 

- page from the teamplate before publishing but after clicking on "create" button

create_page_template_before publish.png 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events