Confluence 5.7 のサポートは終了しています。
ドキュメントの最新バージョンを確認してください。
The Content by Label macro displays links to pages, blog posts and attachments that have been tagged with specific labels.
ラベル別コンテンツマクロをページに追加する方法
Speeding up macro entry with autocomplete: Type { and the beginning of the macro name, to see a list of suggested macros. Details are in Using Autocomplete. 既存のマクロを編集する方法: マクロのプレースホルダをクリックして、[編集] を選択します。マクロのパラメータが編集可能な場合、マクロのダイアログ ウィンドウが開きます。
Parameters are options that you can set to control the content or format of the macro output. Where the parameter name used in Confluence storage format or wikimarkup is different to the label used in the macro browser, it will be listed below in brackets (example).
パラメーター | 既定 | 説明 |
|---|---|---|
ラベル | なし | Filter by label(s). The macro will display only the content tagged with the label(s) specified here. See also the Operator parameter below.
|
Author(s) | なし | Filter by author. The macro will display only the content created or updated by the author(s) specified here. |
Include this Content Type Only | すべて | Filter by content type. The macro will display only the content of the type specified here. 特定のコンテンツ タイプのコンテンツを除外するには、そのコンテンツ タイプのすぐ前にマイナス記号 (-) を追加します。例: コンテンツ タイプを
|
Show Labels for Each Page | true | Show or hide labels in the results. |
Show Space Name for Each Page | true | Show or hide spaces in the results. |
List Title | なし | Add a title or heading to the list. |
Maximum Number of Pages | 15 | Limit the maximum number of results to be displayed. Note that the results are sorted first, and then the maximum parameter is applied. |
Display Excerpts | false | Include excerpts from each page listed. Note that you must have defined excerpts on each of those pages, by adding the excerpt macro to the page. Only the first few lines of the excerpt for each page are displayed. |
Restrict to these Spaces | @all | Filter by space. The macro will display only the content which belongs to the space(s) specified here.
個人用スペースを指定する場合、 |
Operator | または | The operator to apply when matching content against the labels specified in the Label(s) parameter:
|
Sort By | modified | Specify how the results should be sorted.
|
逆順ソート | false | Select Reverse Sort to change the sort from descending to ascending. Use this parameter in conjunction with the Sort By parameter. Reverse Sort is ignored if Sort By is not specified. |
次の例は、Confluence ページの基本的なマークアップを調べたり、編集したりする上級ユーザー向けに提供されています。
マクロ名: contentbylabel
マクロ本文: なし。
<ac:structured-macro ac:name="contentbylabel"> <ac:parameter ac:name="spaces"/> <ac:parameter ac:name="author">admin,smaddox</ac:parameter> <ac:parameter ac:name="title">My labelled pages</ac:parameter> <ac:parameter ac:name="showLabels">false</ac:parameter> <ac:parameter ac:name="reverse">true</ac:parameter> <ac:parameter ac:name="sort">creation</ac:parameter> <ac:parameter ac:name="max">10</ac:parameter> <ac:parameter ac:name="excerpt">true</ac:parameter> <ac:parameter ac:name="labels">chocolate,cake</ac:parameter> <ac:parameter ac:name="showSpace">false</ac:parameter> <ac:parameter ac:name="type">page</ac:parameter> <ac:parameter ac:name="operator">AND</ac:parameter> </ac:structured-macro>
{contentbylabel:spaces=@personal,@self|author=admin,smaddox|title=My labelled pages|showLabels=false|reverse=true|sort=creation|max=10|excerpt=true|labels=chocolate,cake|showSpace=false|type=page|operator=AND}