Confluence bridge for Attachments
Last modified by Yana Oksner on 2024/12/03 16:51
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"
/}}