Attachments
Last modified by Frank Fock on 2024/05/23 17:17
The Attachment macro is a bridge between Confluence and XWiki. It uses the XWiki implementation to display attachments in the page content. There are two things to note:
Not every parameters supported by the Confluence macro are supported by this bridge macro. The remaining parameters are ignored:
- labels is not supported since XWiki does not support attachment tags
- preview does not make sense for the XWiki macro as attachments are displayed differently
- old has not been implemented in this bridge macro because it does not make really sense for XWiki
- "created date" value of the sortBy property behave 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"
/}}