Forums

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

How to create a list of content by template?

Steve Coppin-Smith July 5, 2019

I'd like to display a list of all how-to articles (ideally ordered by recently updated) on the space overview page, but can't seem to find an elegant way to list content by the template used to create it. I'm assuming I'm missing something!

1 answer

1 accepted

0 votes
Answer accepted
Thomas Schlegel
Community Champion
July 5, 2019

Hi @Steve Coppin-Smith 

you can use the "Content By Label" - Macro if all of your pages have the same label.

Steve Coppin-Smith July 5, 2019

Thanks for the reply, @Thomas Schlegel . Do I need to add that label manually to each piece of content? I've seen some older posts suggesting ways to add automatically, but they didn't seem to match up to the current UI.

Thomas Schlegel
Community Champion
July 5, 2019

You should add the label to your template, so every page created with this template gets the label automatically.

But I think, you have to add the label manually to the pages you created already. I don't know a way for "bulk adding" a label to pages after creation. 

Steve Coppin-Smith July 5, 2019

> You should add the label to your template, so every page created with this template gets the label automatically.

Can you point me to where I can do that please @Thomas Schlegel ? I don't see a button. 

Thomas Schlegel
Community Champion
July 8, 2019

Hi @Steve Coppin-Smith ,

just click on the label field in the template:

image.png

Steve Coppin-Smith July 8, 2019

I don't see that on the How-to template, perhaps because it's a default template? However, I did notice that Confluence is automatically adding the label "kb-how-to-article" to the content created using that template.

Screenshot 2019-07-08 at 09.26.45.png

 

Thanks @Thomas Schlegel , I'm unblocked. A content by template macro would have saved a lot of investigation!

Thomas Schlegel
Community Champion
July 8, 2019

That's great - and yes, you can't change the default templates from Atlassian and add a label. I thought, you created a new one on your own.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events