Attachments

Version 3.1 von xwikiadmin am 2023/10/26 09:37

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
  • upload has not been implemented yet because it conflicts with the standard attachment panel upload
  • "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
pagePages containing the attachments to display. Current page if empty.No 

Example Usage

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