It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How do you embed the content by label macro in a template?

Trying to create a "Q&A" template that will use the content by label macro in the bottom to link to related articles. But I can't figure out how to get the macro to auto-populate based on what links are added to the article in the setup wizard when a user selects the template. 

I feel like it has to be a combination of using the macro and the variable feature in the template editor, but I haven't been able to figure it out. The troubleshooting and how-to article blueprints use a variable $contentbylabelmacro and I tried adding that in, but it didn't work either. I know I can just put the macro in with the generic Q&A label to populate other articles of that type, but I also want it to have links to articles labeled with specific product names based on shared label identifiers. 

 

Any ideas?

2 answers

1 accepted

1 vote
Answer accepted

Hello Andrew,

Welcome to Atlassian Community. It's nice to meet you.

It's not possible to use macros in templates by applying variables. There is a feature request for this currently:

  • CONFSERVER-3324 Support replacement of page template variables in wiki links and macro parameters (Server)
  • CONFCLOUD-3324 Cloud version of the same request above

Please vote on the request and you will automatically be added to the list of watchers and receive updates on it.

Let us know if you have any questions about this.

Regards,

Shannon

Please also consider casting a vote for related request: CONFCLOUD-38181 

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Posted in Confluence

Lessons and Learnings: Six Months of Working Remote [Discussion]

Hey there, folks! For most of us, the past six months- yes, you read that right- have been a journey. More people than ever before have pivoted to working remotely, and navigating being on-scre...

8,411 views 6 6
Join discussion

Community Events

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

Events near you