This page is a snippet

For full information, see:

Snippet

 

Macro name: attachments

Macro body: None.

Parameter nameRequiredDefaultParameter description and accepted values
oldNofalse

Available values:

  • false - Displays only the latest version of each attachment.
  • true – Displays all versions of each attachment, including the old versions.
patternsNo(None)

A comma-separated list of regular expressions, used to filter the attachments by file name. Note that the parameter values must be regular expressions. For example:

  • To match a file suffix of 'jpg', use .*jpg (not *.jpg).
  • To match file names ending in 'jpg' or 'png', use .*jpg,.*png

Here is a tutorial on regular expressions.

sortByNodate

Available values:

  • date
  • size
  • name
pageNoThe page on which the macro exists.Page name, used to display attachments from another page.
sortOrderNo

The default sort order is determined by the sortBy type:

  • Reverse chronological for 'date'.
  • Largest to smallest for 'size'.
  • Alphabetical for 'name'.

Available values:

  • ascending
  • descending
labelsNo(None)A comma-separated list of labels. Confluence will show only attachments that have all the labels specified. (The match is an AND, not an OR.)
uploadNofalseDetermines whether the list of attachments will include options allowing users to browse for, and attach, new files.
  • No labels