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

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"
/}}