It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

0 votes

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




0 votes

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
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published Thursday in Confluence

Confluence CVEs and common questions

Two vulnerabilities have been published for Confluence Server and Data Center recently: March 20, 2019 CVE-2019-3395 / CVE-2019-3396 April 17, 2019 CVE-2019-3398 The goal of this article is...

113 views 0 10
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