Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Content by Label Macro in Page Conent List

Deleted user
February 1, 2022

How do I make a "Content by Label" Macro appear in a Page content list?

I haven many "Content by Label" Macros on one Page an I want a summary List at the beginning of te Page.

1 answer

0 votes
Brant Schroeder
Community Champion
February 1, 2022

@[deleted] Welcome to the Atlassian Community

Are you asking if you can display the content by label macro within a page table of content?  If so the answer is no.  The table of content is built off of page headers.  https://support.atlassian.com/confluence-cloud/docs/insert-the-table-of-contents-macro/

If you wanted all these lists at the top you could use the page excerpt macro and pull all the information that way to the top.  

Deleted user
February 3, 2022

Thanks for your Tip, Brandt.

But if I used the excerpt macro I had to put each "Content by Label" macro into its own excerpt source macro, then name them all, and then add an excerpt list macro to manually refer to them. This would lead to a chain of 10 or 20 matrioshka makros all residing on the same page.

Also, the page is not static and will be edited by many team members. I had to explain everybody how to do that and keep the excerpt structure synchronized manually.

My goal is just to have a small overview at be beginning of the page that automatically shows all "Content by Label" macro headers on that page.

Brant Schroeder
Community Champion
February 3, 2022

If you just add a header (H1, H2, H3, etc) above the content by label and add the Table of Content macro it will list the headers.   It will not pull anything from the content by label macro though.

Suggest an answer

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

Atlassian Community Events