This page last changed on Jan 02, 2007 by rosie@atlassian.com.

You need to edit in 'Wiki Markup' mode to include macros in your page.

The Blog Posts Macro allows you to display a space's news items within a page. Clicking on the title of the news item opens it up in a new window.

Blog Posts Macro

What you need to type What you will get
{blog-posts}


asas

Posted at 20 Sep @ 8:43 PM by Vidya Madabushi | 6 comments | Edit


This is a sample news item for the Documentation Space.

Posted at 26 Aug @ 1:48 AM by Vidya Madabushi | 0 comments | Edit
Last changed Aug 11, 2005 23:26 by Vidya Madabushi

Sample News

Posted at 08 Jul @ 12:48 PM by 강희철 | 2 comments | Edit

Optional Parameters

No  parameter Default Description
 1 no  15 Specify the number of posts you want displayed
 2 content excerpts Display the content in its entirety, as short excerpts, or as a list of titles
 3 time none Specify from how far back in time you want items displayed
 4 labels none To display content with specified labels

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:5|content=excerpts}

Titles

{blog-posts:5|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)

Hours

{blog-posts:time=12h}

Days

{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 a user name

  • To display content associated to a particular user

The following code will display the first 10 items posted by a user.

{blog-posts:10|spaces=~username}

6. Filter items by combining parameters

The following code will display the first 10 items posted by a user from a particular space as a list.

{blog-posts:10|spaces=space name,~username|content=title}
RELATED TOPICS

Working with Macros
Working with News Overview

Take me back to Confluence 2 Home

Document generated by Confluence on May 01, 2007 02:36