Confluence 2.8 のサポートは終了しています。
ドキュメントの最新バージョンを確認してください。
You need to edit in 'Wiki Markup' mode to include macros in your page.
Use Confluence's Attachments macro to display the list of attachments that belong to a page.
Attachments macro
必要な入力項目 |
表示結果 |
---|---|
{attachments} |
Optional Parameters
パラメーター |
既定 |
説明 |
---|---|---|
patterns |
すべて |
Specify which attachments to display using filename patterns |
古い |
false |
Include old attachments |
sortBy |
日付 |
Specify the sort order for attachments. Valid values are "date", "size" and "name". |
1. Filter attachments by filename
{attachments:patterns=.*jpg,.*gif}
Use a comma-separated list of regular expressions to specify the filenames of the attachments you want displayed.
注意
The patterns are regular expressions, so to match a file suffix of 'jpg', use .*jpg, not *.jpg.
Here's a detailed tutorial on regular expressions.
2. Include old attachments
{attachments:old=true}
An optional true/false value determines whether to show old versions of attachments. This is set to false by default.
関連トピック
Working with Attachments Overview
Working with Macros
Take me back to Confluence User Guide