Using templates and macros based on page name?

Stephen Hayden
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 13, 2013

So here's my use case, wondering if this can be done?

I want to build a number of pages for an event, each page will be for competitions within that event, so pages will be called kickball, softball, etc.

Blogs will be created as recaps for these events, and labeled appropriately so the content can be aggregated into a main feed on the event homepage, but also onto the pages for the individual events.

So my question is, can I build a template, and have the blog list macro use the name of the page for the label it is constrained to? So a page about Kickball would then have a blog roll of kickball labeled posts, etc.

It's a few dozen events, relativelly trivial work to make them all, but can see this being useful in other applications so I thought I would ask and it could make a interesting use case for some documentation I'm building for our end users.

Loosely related, can you list blog posts by space category? Sounds like maybe a job for the reporting plugin maybe?

Thanks!

1 answer

1 accepted

0 votes
Answer accepted
Daniel Borcherding
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 14, 2013

Stephen,

The Blog post macro is able to aggregate on space, labels or authors. You can specify a time frame that this macro will pull in new blogs.

We have the following document that goes into detail on the use of this macro.

https://confluence.atlassian.com/display/DOC/Blog+Posts+Macro

Please take a moment to review it and let us know if you have any other questions.

Stephen Hayden
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 14, 2013

Yeah, default functionality is too broad for this particular use case. Was hoping to trip over an unrealized tokenized feature or something, so you could build a template that have context beyond just the space level. Or perhaps some pointers with the reporting plugin that might accomplish the same thing and leverage the name of the page in this use case to populate content.

So as it is, if I have to make 50 pages with this macro, i'll just need to edit the labels used in the macros to reflect the event they are to catalog/track.

Daniel Borcherding
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 15, 2013

To the best of my knowledge yes. There is no way that I know how to get the blog macro to pull a variable out of a page template. You will need to create the pages by hand and alter the blog macro to aggregate the label you desire.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events