Attachment Macro: How do I hide the Download All option?

Using Confluence 5.7.1

Not afraid to add/modify code if necessary.

We don't want people to have the Download All option for the Attachment Macro.   The PDFs shown in the Attachment Macro on a page are view-only and should not be downloaded by users from this page.   Is there a way to disable this option on a single page or all pages (if single page is not possible)?  We do want to allow downloading of attachments in different pages or spaces, but want to control it in this page and maybe others.




Jeremy Soronen

2 answers

This widget could not be displayed.

Hi Jeremy, 


Not sure if it would help you, but, you can find some codes in this doc, you can find some options on how to disable the download for specific attachments or for the whole space. smile




This widget could not be displayed.

Howdy @Jeremy Soronen,

I know this is a little late, but I have a solution for you!

You can add the following to either the Global Stylesheet (for all pages), specific Space Stylesheets (for all pages in those spaces), or you can use the HTML macro (which needs to be enabled) to include it in specific pages: {
    display: none !important;
a#download-all-link {
    display: none !important;

The first block will hide the link generated by the Attachments Macro, while the second will hide the link displayed on the View Page Attachments screen. Hopefully this helps out!

Stephen Brannen | Confluence + Crowd Support

@stephen Brananen,  Does this work if confluence is an ondemand instance?  

I have looked and Have found PDF STYLESHEET Option, I did the change but nothing happened after saving. 

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Sep 17, 2018 in Confluence

Why start from scratch? Introducing four new templates for Confluence Cloud

Hi my Community friends!  For those who don't know me, I'm a product marketer on the Confluence Cloud team - nice to meet you! For those of you who do, you know that I've been all up in your Co...

603 views 8 6
Join discussion

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