The Blog Posts macro allows you to display blog posts on a Confluence page. Clicking on a title takes you to the blog post. The Blog Posts macro generates output like that in the screenshot below:
Using the Blog Posts Macro
To add the Blog Posts macro to a page:
- In the Confluence editor, choose Insert > Other Macros.
- Find and select the required macro.
Parameters
When editing, you can click on the macro placeholder and choose Edit to display the parameters for this macro in the Macro Browser.
Parameters are options that you can set for Confluence macros to control the content or format of the macro output. The table below lists parameters for this macro that can be set in the Macro Browser.
Parameter | Default | Description |
---|
Content Type to Display | titles | Available values: - titles — Display a list of blog posts, showing titles only.
- 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.
|
Time Frame | no limit | Specify how far back in time Confluence should look for the blog posts to be displayed. Available values: m — Minutesh — 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 | 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.
- To exclude content which matches a given label, put a minus sign (-) immediately in front of that label value. For example: If you specify a label value of
-badpage you will get only content which is not labelled with 'badpage'.
- To indicate that the results must match a given label value, put a plus sign (+) immediately in front of that label value. For example: If you specify a label value of
+superpage,+goodpage you will get only content which has at least two labels, being 'superpage' and 'goodpage'.
|
Restrict to these Authors | None | Filter the results by author. The macro will display only the blog posts which are written by the author(s) you specify here. You can specify one or more authors, separated by a comma. |
Restrict to these Spaces | @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.
- To exclude content in a specific space, put a minus sign (-) immediately in front of that space key. For example: If you specify a space key of
-BADSPACE you will get only content which is not in the BADSPACE.
- To indicate that the results must come from a specific space, put a plus sign (+) immediately in front of that space key. For example: If you specify a space key of
+GOODSPACE you will get only content in GOODSPACE. (Note that this is not particularly useful, because each content item belongs to one space only. If you put a plus sign next to one space key and list other space keys too, the other space keys will be ignored.)
Special values:
@self — The current space.
@personal — All personal spaces.
@global — All global spaces.
@favorite — The spaces you have marked as favourite.
@favourite — The same as @favorite above.
@all — All spaces in your Confluence site.
* — The same as @all above.
When specifying a personal space, remember to use the tilde (~) sign in front of the username, such as ~jbloggs or ~jbloggs@example.com .
|
Maximum Number of Blog Posts | 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 | 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 | 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. |
Related Topics
Working with Macros
Working with Blog Posts
Take me back to the Confluence User's Guide.