How do I list page attachments on each confluence page?

I am looking for enabling an list of attachments for each page on latest Confluence (5.5+), somethng that would look more like the attachment listing from JIRA.

If there are no attachments, there should be not list. If there are some, I do expect a list of them at the end of the page.

Now it seems that if a page has attachments it only shows an icon but no list.

I am not looking for a solution that would require modifying each page :p

2 answers

This widget could not be displayed.

Mmm, well, there's the {attachments} macro which will do it, but you have to add it to each page, and it's still there when there's nothing attached.

It sounds like you want a web-item added to do this, but I'm not aware of any plugins that provide such an item. A web item would be part of the space surrounding a page, not part of the page, so it would appear everywhere.

There might be some use in exploring the overall theme you've got in Confluence as well, as some plugins let you customise that quite a bit, and may allow you to embed something in the surrounding space. Off the top of my head, I'd maybe try "Theme Builder", with a panel containing the "attachments" macro I mentioned above

Three points on the idea of using Theme Builder

  1. I've not tried this scenario, I'm very rusty on Theme Builder since I specialise in Jira
  2. In the interests of openness - I work for Adaptavist
  3. Other theme plugins are available, but I've not used them as much as Theme Builder and I really don't know if they might provide this functionality as well
This widget could not be displayed.
Davin Studer Community Champion May 06, 2014

You could create a user macro that simply implements the attachments macro only if the page has attachments. Then put the user macro atthebottom of the page decorator and it would show on every page if the page has attachments.

Attachment Table Macro is an alternative to the attachments macro that shows nothing if there are no attachments. Adding to the page layout is a good idea.

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Published Jul 30, 2018 in Confluence

How Manon Soubies-Camy uses Confluence + Trello to organize webinar notes and her knitting stash

@Manon Soubies-Camy is an engineer who has been an avid Atlassian user since 2014. She helps companies of all sizes transform the way they work with the Atlassian stack, including Jira and Confl...

863 views 8 13
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you