Confluence bridge for Attachments
Modifié par Admin le 16/10/2025 - 23:33
Description
This macro is a bridge for the Confluence Attachment macro. It uses the XWiki implementation to display attachments in the page content.
The following parameters are not supported for now:
- labels , because XWiki does not support attachment tags
- preview , because attachments are displayed differently in XWiki
- old , because it doesn't really make sense in XWiki
Additionally, the "created date" value of the sortBy property behaves the same way as the "date" value
Parameters
| Parameter | Description | Required | Default |
|---|---|---|---|
| patterns | Comma-separated list of regular expressions, used to filter attachments by name. | No | |
| sortBy | Sort attachments by date , size or name | No | date |
| sortOrder | Sort attachments in ascending or descending order | No | ascending |
| upload | Allow users to attach new files | No | true |
| page | Pages containing the attachments to display. Current page if empty. | No |
Example Usage
{{confluence_attachments
patterns=".*png"
sortBy="name"
/}}
patterns=".*png"
sortBy="name"
/}}