Confluence bridge for Attachments

Modifié par Admin le 25/06/2024 - 07:06

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

ParameterDescriptionRequiredDefault
patternsComma-separated list of regular expressions, used to filter attachments by name.No
sortBySort attachments by date , size or name No date
sortOrderSort attachments in ascending or descending orderNo ascending
uploadAllow users to attach new filesNo true
pagePages containing the attachments to display. Current page if empty.No

Example Usage

{{confluence_attachments
  patterns=".*png"
  sortBy="name"
/}}