Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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 can i use the labels of a page automatically in the content by labels macro Edited

I am creating a new template with a see also section in the bottom. I would like to include the content-by-label macro and adjust it in a way so that it always shows all sites that have the same labels. Is that possible? Or how can I do that (other than manually)?

2 answers

0 votes
Bill Bailey Community Leader Sep 10, 2020

If you enter the macro in the template with a set of labels, then when you use the template, the macro will always display the content matching those labels. I guess I am not seeing what the issue is?

No, it’s a template, so when a user uses it and ads labels to the page, the macro should automatically show the content with these labels. I want automation! 

Bill Bailey Community Leader Sep 10, 2020

OK, then there is this solution using a user macro: 

Now personally, I would probably make this simpler as a wrapper user macro that reads the label(s) from the page, then feeds them to an instance of Content by Label macro. A cleaner solution.

I wrote an article about this process: Getting-Started-with-User-Macros-Writing-a-Wrapper-Macro 

Hey Bill,

thx for the answer. You might have overlooked, that I am in Confluence Cloud and I cannot use user macros. Is there also a solution for cloud?


Bill Bailey Community Leader Sep 21, 2020

Yes, switch to the server version? (bad joke) There are two main reasons I advise clients to not use the Cloud version of Confluence:

  • No control over what version you are running (workflows can break without notice)
  • Lack of user macros.

I have not tried this route, but:

  • Develop your user macro on a local server version
  • Package your macro as a plugin
  • Install in the Cloud

The first two I have done, but I am not sure if the Cloud version will allow installing a plugin derived from a user macro.

I want this, too. I'm also in cloud. Seems like a setting that should be allowed inside the macro.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Confluence Cloud

Get to know the Confluence team!

Go “behind the screen” to meet some of the Confluence Cloud team. In this video series, we tackle some of the hard-hitting questions you never knew you wanted the answer to!  Meet some of the ...

236 views 0 10
Read article

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