Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


The Blog Posts macro allows you to display blog posts on a Confluence page. Clicking on a title takes you to the blog post.

Using the Blog Posts Macro

To add the Blog Posts macro to a page: 

Excerpt Include
Navigating to the Macro Browser
Navigating to the Macro Browser
nopaneltrue

Parameters

Excerpt Include
_Details_about_macro_parameters
_Details_about_macro_parameters
nopaneltrue

Parameter

Required

Default

Description

Content Type to Display

(content)

No

titles

Available values:

  • titles — Display the title, creator, space, and created date stamp for each blog post.
  • excerpts — Display a short excerpt from each blog post. If the post contains an Excerpt macro, the Blog Posts macro will display the content defined in the Excerpt macro. If the post does not contain an Excerpt macro, the Blog Posts macro will display the first few sentences of the post.
  • entire - Display the whole content of each blog post.

Time Frame
(time)

No

no limit

Specify how far back in time Confluence should look for the blog posts to be displayed. 

Available values:

  • m — Minutes
  • h — Hours, so '12h' displays blog posts created in the last twelve hours.
  • d — Days, so '7d' displays blog posts created in the last seven days.
  • w — Weeks

Restrict to these Labels
(label)

No

None

Filter the results by label. The macro will display only the blog posts which are tagged with the label(s) you specify here. 

You can specify one or more label values, separated by a comma or a space.

Excerpt Include
_Pattern Matching for Label Macro Parameter
_Pattern Matching for Label Macro Parameter
nopaneltrue

Restrict to theseAuthors 
(author

No

None

Filter the results by author. The macro will display only the blog posts which are written by the author(s) you specify here.

Restrict to these Spaces
(spaces

No

@self, i.e. the space which contains the page on which the macro is coded

This parameter allows you to filter content by space. The macro will display only the pages which belong to the space(s) you specify here. 

You can specify one or more space keys, separated by a comma or a space.

Excerpt Include
_Pattern Matching for Space Macro Parameter
_Pattern Matching for Space Macro Parameter
nopaneltrue
Special values:
Excerpt Include
_Special Values for Space Macro Parameter
_Special Values for Space Macro Parameter
nopaneltrue

Maximum Number of Blog Posts
(max)

No

15

Specify the maximum number of results to be displayed. Note that the results are sorted first, and then the maximum parameter is applied.

Sort By
(sort)  

No

creation

Specify how the results should be sorted. If this parameter is not specified, the sort order defaults to descending order (newest first) based on the creation date. 

Values:

  • title — Sort alphabetically by title.
  • creation — Sort by the date on which the content was added.
  • modified — Sort by the date on which the content was last updated.

Reverse Sort
(reverse) 

No

false

Select to change the sort from descending to ascending order (oldest first). Use this parameter in conjunction with the Sort By parameter. This parameter is ignored if the Sort By parameter is not specified.

In storage format and wikimarkup a value of true changes the sort order.

Wiki markup example

Include Page
_WikiMarkupMacroNote
_WikiMarkupMacroNote

Macro name: blog-posts

Macro body: None.

Code Block
{blog-posts:content=titles|[email protected],ds|author=jsmith|time=4w|reverse=true|sort=creation|max=10|label=chocolate,cookies}