...
This page demonstrates how to use the Attachment Table macro, which is part of the Advanced Tables for Confluence add-on, to select attachments based on the Space or attachment name, using a Regex expression.
...
Macro Browser Input
Select this Macro
Macro Name | Attachment table |
Macro Syntax | {attachment-table} |
Define these Parameters/Values
Space key or space name regex | @self |
Attachment name regex | .*png|.*jpg |
Screenshot
Wiki Markup Input
Code Block | ||||
---|---|---|---|---|
| ||||
{attachment-table:spaceRegex=@self|attachmentRegex=.*png} |
...
Info |
---|
Confluence is more limited on parameter values. In this case, | (pipe - used for regex or)is a reserved character, so it cannot be used. |
...
Example Result
Tip | ||
---|---|---|
| ||
The above example shows how to match on one label. Constructing a regex to match attachments that have 2 or more specific labels is a bit more complicated.
|
...
Other Examples
Visit our full list of product examples for additional inspiration!
Include Page