Listing Attachments from Current Page

Scenario

The Attachments macro could display a lot of information so, to simplify the amount of attachment data presented, follow this next recipe.

The recipe displays attachments from the current page into a neat simple table sorted by filename.


Result

File NameCommentSize

Diamond Heart.gif

A Diamond Heart icon

3 kB

Macro Structure.png

A screenshot image for this recipe

32 kB

Princess Round.gif

A Princess Round icon

3 kB

Sapphire Square.gif

A Sapphire Square icon

2 kB


Recipe

Ingredients

Add-ons

Reporting

Platform

N/A

Level

EASY

Estimated time

15 minutes

Macros

Suppliers

Storage format

Macro structure

You can recreate the example in the editor view:

Steps

  1. Create a Report Table macro.

  2. Inside that Report Table macro, create a Local Reporter macro.
    For the Key, specify content:attachments.

  3. Within the Local Reporter macro, create a Text Sort macro.
    For the Key, specify attachment:title.

  4. Create a Report Column macro within the Report Table macro, and add it below the Local Reporter macro.
    For the Title, specify "File Name".

  5. Within the Report Column macro, create a Report Info macro.
    For the Key, specify attachment:title.

  6. Within the Local Reporter, create another Report Column.
    For the Title, specify "Comment".

  7. Within the Report Column macro, create a Report Info macro.
    For the Key, specify attachment:comment.

  8. Within the Local Reporter, create another Report Column.
    For the Title, specify "Size".

  9. Within the Report Column macro, create a Report Info macro.
    For the Key, specify attachment:nice file size.

  10. Lastly, within the Local Reporter, create a Report Empty macro.