• Products
  • Documentation
  • Resources

Insert the blog posts macro

The blog posts macro allows you to display blogs on a Confluence Cloud page. Selecting a title takes you to the blog post.

To add the blog posts macro:

  1. When editing, select from the toolbar

  2. Find the macro by name and select it

  3. Configure it as needed

You can also type / on the page to bring up the same list you'd see by selecting from the toolbar. Continue typing the name of the macro to filter the list.

To edit the blog posts macro: 

  1. Select the macro placeholder.

  2. Select the Edit icon to open the configuration panel.

  3. Configure the parameters. Your changes are saved as you go.

  4. Resume editing the page, and the panel closes.

You can also select the centered , medium-width , and full-width icons to adjust the width of some macros. Select the trashcan iconto remove the macro.

Parameters

Parameters are options that you can set to control what and how content from the macro appears on the page. 

If the parameter name used in Confluence Cloud storage format is different than the label used when inserting macros using the browser or the slash command, it will be listed below in brackets (example).

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 blog contains an excerpt macro, the blog posts macro will display the content defined in the excerpt macro. If the blog does not contain an excerpt macro, the blog posts macro will display either the first few sentences of the blog, or plain text information.

  • entire - Display the entire content of each blog post.

Time Frame
(time)

No

no limit

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

Available values:

  • m — Minutes

  • h — Hours, so '12h' displays blogs created in the last twelve hours.

  • d — Days, so '7d' displays blogs 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 blogs 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 labeled 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
(author

No

None

Filter the results by author. The macro will display only the blogs 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.

  • 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 site spaces.

  • @favorite — The spaces you have marked as favorite.

  • @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
(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, a value of true changes the sort order.

 

Still need help?

The Atlassian Community is here for you.