Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0
Wiki Markup
h2. Macro Code

...


{code
}
{attachments:patterns=.*png, .*jpg, etc|old=true|sortBy=name|upload=true}
{code}

Parameters

Name

Required

Default

Description

patterns

(error)

all

Filters the attachments to display, using a comma-separated list of regular expressions. So, to match a file suffix of 'jpg', use .*jpg, not *.jpg.

sortBy

(error)

date

Specifies the sort order for attachments. Note that people viewing the page can change the sort order by clicking the column headings. Valid values are:

  • date - sorts by reverse chronological order (newest first)
  • size - sorts largest to smallest
  • name - sorts alphabetically.

old

(error)

false

Include previous attachment versions in the list.

upload

(error)

false

Provides the ability to browse for, and attach, new files.

Result

...


h2. Parameters

|| Name || Required || Default || Description ||
|| patterns | (x) | all | Filters the attachments to display, using a comma-separated list of regular expressions. So, to match a file suffix of 'jpg', use .*jpg, not *.jpg. |
|| sortBy | (x) | date |  Specifies the sort order for attachments. Note that people viewing the page can change the sort order by clicking the column headings. Valid values are:
* date - sorts by reverse chronological order (newest first)
* size - sorts largest to smallest
* name - sorts alphabetically. |
|| old | (x) | false | Include previous attachment versions in the list. |
|| upload | (x) | false | Provides the ability to browse for, and attach, new files. |

h2. Result
{attachments:old=true|sortBy=size|upload=true|patterns=ISandT*.*docx}