Displays a list of attachments on a given page. For more information see Displaying a List of Attachments.
次の例は、Confluence ページの基礎となるマークアップを編集したい上級ユーザーのために提供します。
マクロ名: attachments
マクロ本文: なし。
| パラメーター名 | 必須 | 既定 | パラメーターの説明と指定可能な値 |
|---|---|---|---|
old | いいえ | false | 利用可能な値:
|
patterns | いいえ | (なし) | |
sortBy | いいえ | date | 利用可能な値:
|
page | いいえ | The page on which the macro exists. | Page name, used to display attachments from another page. |
sortOrder | いいえ | The default sort order is determined by the
| 利用可能な値:
|
labels | いいえ | (なし) | A comma-separated list of labels. Confluence will show only attachments that have all the labels specified. (The match is an AND, not an OR.) |
upload | いいえ | false | Determines whether the list of attachments will include options allowing users to browse for, and attach, new files. |
preview | いいえ | true | Determines whether a preview of the attached file appears when the item is expanded. |
<ac:structured-macro ac:name="attachments">
<ac:parameter ac:name="old">false</ac:parameter>
<ac:parameter ac:name="patterns">.*png,.*jpg</ac:parameter>
<ac:parameter ac:name="sortBy">name</ac:parameter>
<ac:parameter ac:name="page">
<ac:link>
<ri:page ri:content-title="My page about chocolate"/>
</ac:link>
</ac:parameter>
<ac:parameter ac:name="sortOrder">descending</ac:parameter>
<ac:parameter ac:name="labels">chocolate,cookies</ac:parameter>
<ac:parameter ac:name="upload">false</ac:parameter>
</ac:structured-macro> |
{attachments:old=false|patterns=.*png,.*jpg|sortby=name|page=Mypage about chocolate|sortorder=descending|labels=chocolate,cookies|upload=false|preview=false} |