Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Div
idProductTOC

On this page

Table of Contents
maxLevel1
excludeOn this page
typeflat
separator  | 

Overview

This page demonstrates how to use the Attachment Table macro, which is part of the the Advanced Tables for Confluence add-on, to select attachments based on the Space or attachment name, using a Regex expression.

  • Use the special @self value for the spaceRegex parameter to match on all attachments in the current Space.
  • Use .*png|.*jpg to match on attachments whose name ends in png or jpg.

Macro Browser Input

Select this Macro

Macro NameAttachment 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
languagetext
linenumberstrue
{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

 

Other Examples

Visit our full list of product examples for additional inspiration!

 

Include Page
_SupportFooter
_SupportFooter

Include Page
_RightPanel
_RightPanel