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

1 vote

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
1 vote
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
Community showcase
Published Oct 09, 2018 in Confluence

Introducing Praecipio Consulting, an Atlassian Solution Partner

Hey there Community!  My name is Vannya Vallejo, the Channel Communication Specialist at Atlassian and I want to help Atlassian users like you learn about our Solution Partners and how they c...

364 views 0 9
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