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
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

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

Sudeshna1992
Level 1
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 @Arun_Patidar @Vijayalakshmi_S @BrianKasingli 

AEM 6.5 Assets download Touch UI
1 Accepted Solution
Arun_Patidar
Correct answer by
Community Advisor
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

View solution in original post

2 Replies
Arun_Patidar
Correct answer by
Community Advisor
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

View solution in original post

Vijayalakshmi_S
Community Advisor
Community Advisor

Hi @Sudeshna1992,

Adding to @Arun_Patidar'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