Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How do I list page attachments on each confluence page?

Sorin Sbarnea (Citrix)
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 5, 2014

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
Davin Studer
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 6, 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.

Bob Swift
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 6, 2014

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.

1 vote
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 5, 2014

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events