This documentation relates to an early version of Confluence.
For documentation on the latest Confluence release, please go to the documentation home page.

Displaying List of Attachments in a Page

Use Confluence's Attachments macro to display the list of attachments that belong to a page.

Attachments macro

What you need to type What you will get
{attachments}
  Name Size Creator (Last Modifier) Creation Date Last Mod Date Comment  
JPEG File waterfall.jpg 1.27 Mb Vidya Madabushi Aug 09, 2005 Aug 09, 2005  
JPEG File office1.jpg 94 kb Vidya Madabushi Aug 09, 2005 Aug 09, 2005  
File mail-next.png 0.9 kb Vidya Madabushi Aug 09, 2005 Aug 09, 2005  
File editProfile.png 33 kb Vidya Madabushi Aug 09, 2005 Aug 09, 2005  
JPEG File harbour3.jpg 93 kb Vidya Madabushi Aug 09, 2005 Aug 09, 2005  




Optional parameters

Filter attachments by name

{attachments:patterns=.*jpg,.*gif}

Use a comma-separated list of regular expressions to specify the file format/s of the attachments you want displayed.


Include old attachments

{attachments:old=true}

An optional true/false value determines whether to show old versions of attachments. This is set to false by default.

Note
The patterns are regular expressions, so to match a file suffix of 'jpg', use .*jpg, not *.jpg.

Here's a detailed tutorial on regular expressions.

RELATED TOPICS

Working with Attachments Overview
Working with Macros

Take me back to Help Home

Labels

 
(None)