The Blog Posts Macro allows you to display news items within a page. Clicking on a title takes you to the news item.

ブログ投稿マクロ

必要な入力項目

表示結果

{blog-posts}

Blog stream

Create a blog post to share news and announcements with your team and company.

Optional Parameters

パラメーター名

既定

説明

default parameter

15

Specify the number of posts you want to display.

content

entire

Specify 'content=excerpts' to display short excerpts, or 'content=titles' to display a list of posts.

時間

制限なし

Specify from how far back in time you want items displayed, using 'h' (hours) or 'd' (days).

labels

なし

Display posts that match the specified label(s).

スペース

@all

Display posts from the specified space(s). Specify '@all' for all spaces, the space key for a global space, or '~username' for a personal space. Separate multiple space keys with commas.

Examples of Optional Parameters

1. Specify the number of posts you want displayed

{blog-posts:1}

2. Display the content in its entirety, as short excerpts, or as a list of titles

Excerpts

{blog-posts:content=excerpts}

Titles

{blog-posts:content=titles}

3. Choose from how far back in time you want items displayed

For example, "time=12h" would display those items created in the last twelve hours, and "time=7d" would show items made in the last week. (The default is no limit)

{blog-posts:time=12h}

{blog-posts:time=7d}

4. Filter items using labels

  • To display content with any of the specified labels:

The following code will display items that contain either of the labels, 'atlassian' or 'confluence'

{blog-posts:labels=atlassian,confluence|}
  • To display content with all of the specified labels:

The following code will display content with both labels 'atlassian' and 'confluence'

{blog-posts:labels=atlassian,confluence|match-labels=all}

5. Filter items using spaces

  • The following code will display items from the 'Marketing' space (whose key is 'MKTG') and Joe Smith's personal space:
    {blog-posts:spaces=MKTG,~jsmith}
    



6. Filter items by combining parameters

The following code will display the latest 10 items in the 'Marketing' space with the label 'logo'. The items will be displayed as a list.

{blog-posts:10|labels=logo|spaces=MKT|content=title}
関連トピック

Working with Macros
Working with News Overview

Take me back to Confluence 2.7 User Guide

  • ラベルなし