Dashboard > Confluence User Guides and Documents > ... > Working with Attachments Overview > Displaying List of Attachments in a Page
Displaying List of Attachments in a Page Log In   View a printable version of the current page.

Added by vidya, last edited by rosie@atlassian.com on Jun 18, 2007  (view change) show comment
Labels: 
(None)

You need to edit in 'Wiki Markup' mode to include macros in your 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
Unknown macro: {nomarkup}
  Name Size Creator Date Comment  
File editProfile.png 33 kb smaddox Oct 08, 2007    
JPEG File waterfall.jpg 1.27 Mb vidya Aug 10, 2005    
JPEG File office1.jpg 94 kb vidya Aug 10, 2005    

  Name Size Creator Date Comment  
File editProfile.png 33 kb smaddox Oct 08, 2007    
JPEG File waterfall.jpg 1.27 Mb vidya Aug 10, 2005    
JPEG File office1.jpg 94 kb vidya Aug 10, 2005    




Optional Parameters

Parameter Default Description
patterns all Specify which attachments to display using filename patterns
old false Include old attachments

1. Filter attachments by filename

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

Use a comma-separated list of regular expressions to specify the filenames of the attachments you want displayed.

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.


2. 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.

RELATED TOPICS

Working with Attachments Overview
Working with Macros

Take me back to Confluence User Guide

DEMONSTRATION LICENSE - This Confluence site is for demonstration purposes only. Evaluate Confluence today.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.6.1 Build:#916 Nov 09, 2007) - Bug/feature request - Contact Administrators