Enterprise Theme for Confluence
Breadcrumbs

Attachments

Parameter


Name

Description

Type

This is a required field

Default

Values

Filename patterns
patterns

A comma-separated list of filename regular expression patterns. Example: .*pdf

string

https://communardo.atlassian.net/wiki/s/559262338/6452/6115fb25c37f24a5c84be0cbd66bb60564dc30eb/_/images/icons/emoticons/error.png



Style
mode

The display mode of the list. Sidebar = bullet-list

enum

https://communardo.atlassian.net/wiki/s/559262338/6452/6115fb25c37f24a5c84be0cbd66bb60564dc30eb/_/images/icons/emoticons/error.png

full

full, sidebar

Sort by
sortBy

Specify the sort field for attachments. Valid values are date, size and name. The default sort order is reverse chronological (descending) for date, largest to smallest for size, and alphabetical for name. Note that people viewing the page can change the sort order by clicking on the column headings.

enum

https://communardo.atlassian.net/wiki/s/559262338/6452/6115fb25c37f24a5c84be0cbd66bb60564dc30eb/_/images/icons/emoticons/error.png

date

date, size, name

New flag
newFlag

If a value is set, a new indicator will be displayed if the attachment was created within the last [newFlag] days.

string

https://communardo.atlassian.net/wiki/s/559262338/6452/6115fb25c37f24a5c84be0cbd66bb60564dc30eb/_/images/icons/emoticons/error.png

0


Maximum
max

Maximum number of attachments to be displayed

string

https://communardo.atlassian.net/wiki/s/559262338/6452/6115fb25c37f24a5c84be0cbd66bb60564dc30eb/_/images/icons/emoticons/error.png



Maximum length of the title
shortTitle

Maximum character length of the attachment titles. If a title is longer than this it will be truncated at the end of the word and "..." will be added.

int

https://communardo.atlassian.net/wiki/s/559262338/6452/6115fb25c37f24a5c84be0cbd66bb60564dc30eb/_/images/icons/emoticons/error.png

35


ContentId
contentId

If the contentID of a page or blog is given, the macro displays the attachment list of the specified content object.

string

https://communardo.atlassian.net/wiki/s/559262338/6452/6115fb25c37f24a5c84be0cbd66bb60564dc30eb/_/images/icons/emoticons/error.png



Show creation date
showCreationDate

Display the creation date of each attachment.

boolean

https://communardo.atlassian.net/wiki/s/559262338/6452/6115fb25c37f24a5c84be0cbd66bb60564dc30eb/_/images/icons/emoticons/error.png

true


Show author
showCreator

Display the author of each attachment.

boolean

https://communardo.atlassian.net/wiki/s/559262338/6452/6115fb25c37f24a5c84be0cbd66bb60564dc30eb/_/images/icons/emoticons/error.png

true


Show file size
showFilesize

Display file sizes in the list.

boolean

https://communardo.atlassian.net/wiki/s/559262338/6452/6115fb25c37f24a5c84be0cbd66bb60564dc30eb/_/images/icons/emoticons/error.png

true


Show comment
showComment

Display comments.

boolean

https://communardo.atlassian.net/wiki/s/559262338/6452/6115fb25c37f24a5c84be0cbd66bb60564dc30eb/_/images/icons/emoticons/error.png

true


Show actions
showActions

Show actions like properties and delete, if the user is permitted to exceute these actions.

boolean

https://communardo.atlassian.net/wiki/s/559262338/6452/6115fb25c37f24a5c84be0cbd66bb60564dc30eb/_/images/icons/emoticons/error.png

true


Icon
icon

Sets an icon that will be displayed for each attachment, independent of file type.

enum

https://communardo.atlassian.net/wiki/s/559262338/6452/6115fb25c37f24a5c84be0cbd66bb60564dc30eb/_/images/icons/emoticons/error.png


icon-page, icon-blog

Title from comment
titleFromComment

If set to true, comments are used as attachment title if not empty.

boolean

https://communardo.atlassian.net/wiki/s/559262338/6452/6115fb25c37f24a5c84be0cbd66bb60564dc30eb/_/images/icons/emoticons/error.png

false



Examples

Filter Attachments by file name

{gu-attachmentlist:patterns=.*jpg,.*gif}

Use a comma-separated list of regular expressions to specify the file extensions of the type of 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 .


image2015-7-29 15:57:54.png