ブログ投稿マクロを使えば、Confluence ページにブログ投稿を表示できます。タイトルをクリックすると、ブログ投稿に移動します。
ページにブログ投稿マクロを追加するには:
パラメーター | 必須 | 既定 | 説明 |
|---|---|---|---|
表示するコンテンツの種類 ( | いいえ | タイトル | 利用可能な値:
|
タイム フレーム | いいえ | 制限なし | Confluence でブログ投稿をどこまでさかのぼって表示するか指定します。
|
これらのラベルだけを表示します | いいえ | なし | Filter the results by label. The macro will display only the blog posts which are tagged with the label(s) you specify here. |
これらの作者だけを表示します | いいえ | なし | 作成者を条件にしてフィルターをかけます。ここで指定した作成者(複数可)が書いたブログ投稿だけがマクロによって表示されます。 |
これらのスペースだけを表示します | いいえ | @self、すなわちマクロが書かれたページを含むスペース | 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. |
ブログ投稿の最大数 | いいえ | 15 | 表示される結果の最大数を指定します。結果は最初にソートされ、その後、最大のパラメータが適用されることにご注意ください。 |
並べ替え順序 | いいえ | 作成日 | 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. |
逆順ソート | いいえ | false | 降順から昇順(古い順)に並べ替えを変更する場合に選択します。Sort Byパラメーターと合わせて、このパラメータを使用しますSort Byパラメータが指定されていない場合、このパラメータは無視されます ストレージ形式と wiki マークアップでは値を |
次の例は、Confluence ページの基礎となるマークアップを編集したい上級ユーザーのために提供します。
マクロ名: blog-posts
マクロ本文: なし。
<ac:structured-macro ac:name="blog-posts">
<ac:parameter ac:name="content">titles</ac:parameter>
<ac:parameter ac:name="spaces">
<ri:space ri:space-key="ds"/>
</ac:parameter>
<ac:parameter ac:name="author">
<ri:user ri:userkey="12345678912345678912345678912345"/>
</ac:parameter>
<ac:parameter ac:name="time">4w</ac:parameter>
<ac:parameter ac:name="sort">creation</ac:parameter>
<ac:parameter ac:name="max">10</ac:parameter>
<ac:parameter ac:name="labels">chocolate,cookies</ac:parameter>
</ac:structured-macro> |
{blog-posts:content=titles|spaces=@self,ds|author=jsmith|time=4w|reverse=true|sort=creation|max=10|label=chocolate,cookies} |