Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list
SOLVED

How to disable download icon for an asset in AEM 6.5?

Avatar

Level 1

How can I disable (greyed out) the download icon  for an asset as it is an OOTB functionality.
Do I need to overlay any particular node for the same?

Sudeshna1992_0-1606126968110.png

 

@Theo_Pendle @arunpatidar @Vijayalakshmi_S @BrianKasingli 

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

If you want to disable it for all the users then you can simply write CSS.

 

button._coral-ActionButton._coral-ActionButton--quiet._coral-QuickActions-item[title="Download"] {
    display: none;
}

 

Screenshot 2020-11-23 at 1.17.16 PM.png

2 Replies

Avatar

Correct answer by
Community Advisor

If you want to disable it for all the users then you can simply write CSS.

 

button._coral-ActionButton._coral-ActionButton--quiet._coral-QuickActions-item[title="Download"] {
    display: none;
}

 

Screenshot 2020-11-23 at 1.17.16 PM.png

Avatar

Community Advisor

Hi @Sudeshna1992,

Adding to @arunpatidar's solution, if you are to disable based on user permissions, then we need to overlay and then write render conditions. (OOB Privilege type can be used)

Sample implementation for reference:

/libs/cq/gui/components/renderconditions/canreadworkflowmodels/canreadworkflowmodels.jsp