List the images attached to the current page
Let's find all the images that are attached to the current page and list them in a table.
Result
Ingredients
Apps | Reporting for Confluence Data Center |
|---|---|
Macros | Expanding Reporter, Local Reporter, Report Column, Report Empty, Report Image, Report Info, Report Table, Text Sort |
Suppliers | Content Supplier, Expanded Supplier |
Macro structure
You can recreate the example in the editor view:
Guide
Create a Report Table macro.
Within that Report Table macro, create an Expanding Reporter macro with the following parameters:
Key:
content:imagesAs:
at
Within the Expanding Reporter macro, create a Local Reporter macro with Key:
@self.Within the Expanding Reporter macro, under the Local Reporter macro, create a Text Sort macro with Key:
attachment:title.Within the Report Table macro, under the Expanding Reporter macro, create a Report Column macro with Title:
File Name.Within the File Name Report Column macro, create a Report Info macro with the following parameters:
Key:
expanded:at > attachment:file nameLink to Item: selected
Under the File Name Report Column macro, create another Report Column macro with Title:
Image.Within the Image Report Column macro, create a Report Image macro with the following parameters:
Key:
expanded:atHeight:
100pxWidth:
100px
Under the Image Report Column macro, create a Report Empty macro.
Within the Report Empty macro body, enter
No files have been attached to this page.