Confluence 3.0 のサポートは終了しています。
ドキュメントの最新バージョンを確認してください。
The Blog Posts Macro allows you to display news items (blog posts) on a wiki page. Clicking on a title takes you to the news item. The blog posts macro will generate output like the screenshot below:
Screenshot: The Blog Posts Macro in Confluence
On this page:
Usage with the Macro Browser
To insert the blog posts macro into a page using the Macro Browser,
- Open your desired Confluence page, then click the 'Edit' button. The 'Edit Page' mode opens.
- Next, click the Macro Browser icon on the editor toolbar. The Macro Browser will open in the middle of the screen.
- In the Macro Browser, type the name of your desired macro into the search box at the top right of the window. Macros with a matching name will appear in the centre pane. Click on the desired macro to see its options screen. Here, you can set the macro parameters then click 'insert' to put the macro into the page.
Once you've found the blog posts macro, click 'insert' to add it to your page.
Usage with the Wiki Markup Editor
Simply type the following into the Wiki Markup editor:
{blog-posts}
In the example below, we show the news items from a user's personal space on this Confluence site. (The person's username is ~mryall.)
必要な入力項目 |
表示結果 |
|---|---|
| {blog-posts:space=~mryall} |
パラメーター
Parameters are settings for Confluence macros that allow the user to control their content or presentation. The table below lists relevant parameters for this macro.
Parameter names are displayed differently in the macro browser interface and in wiki markup. Below, parameter names used in the macro browser are indicated in Bold text, while their equivalents in wiki markup are indicated in (
bracketed) text. If the latter is not shown, then in wiki markup, the parameter's name should be omitted and only its value should be added immediately after the colon symbol (:).
パラメーター |
既定 |
説明 |
|---|---|---|
( |
なし |
Filter the results by author. The macro will display only the news items which are written by the author(s) you specify here. |
Content Type to Display |
entire |
利用可能な値:
|
Restrict to these Labels |
なし |
Filter the results by label. The macro will display only the news items which are tagged with the label(s) you specify here.
|
Restrict to these Labels |
なし |
Exactly the same as |
Maximum Number of News Items |
15 |
表示される結果の最大数を指定します。結果は最初にソートされ、その後、最大のパラメータが適用されることにご注意ください。 |
Maximum Number of News Items |
15 |
Exactly the same as |
Reverse Sort |
false |
Use this parameter in conjunction with the |
Sort By |
作成日 |
Specify how the results should be sorted. To change the sort order from ascending to descending, use the
|
Restrict to these spaces |
@self、すなわちマクロが書かれたページを含むスペース |
このパラメータを使用すれば、スペースを検索条件にしてコンテンツにフィルターをかけられます。ここで指定したスペース(複数可)に属するページだけがマクロによって表示されます。
特別な値:
|
Restrict to these spaces |
|
Exactly the same as |
Time Frame |
制限なし |
Specify how far back in time Confluence should look for the news items to be displayed.
|
例
1. Specify the number of news items you want displayed
The following code will display a maximum of five news items:
{blog-posts:max=5}
2. Display short excerpts from each news item in the list
{blog-posts:content=excerpts}
3. Display only the titles of the news item
{blog-posts:content=titles}
4. Choose how far back in time Confluence should look for the news items
The following code will display all news items posted in the last twelve hours.
{blog-posts:time=12h}
The following code will display all news items posted in the last 2 weeks.
{blog-posts:time=2w}
5. Filter items using labels
The following code will display news items that contain the labels 'atlassian' or the label 'confluence' (or both):
{blog-posts:labels=atlassian,confluence}
The following code will display news items that contain the labels 'atlassian' and 'confluence' — each news item must be tagged with both labels:
{blog-posts:labels=+atlassian,+confluence}
6. Filter items using spaces
The following code will display items from the 'Marketing' space (space key is MKTG) and Joe Smith's personal space (space key is ~jsmith):
{blog-posts:spaces=MKTG,~jsmith}
7. Combine parameters to filter the news items
The following code will display the latest 10 items in the 'Marketing' space (space key is MKT) with the label 'logo'. The items will be displayed as a list of titles only:
{blog-posts:max=10|labels=logo|spaces=MKT|content=titles}
8. Sort the results
Use the code below to sort the list of items by date last modified, with the most recent at the top:
{blog-posts:sort=modified|reverse=true}
関連トピック
Working with Macros
Working with News Overview
Take me back to the Confluence User Guide.

