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

Avatar

Avatar

Sudeshna1992

Avatar

Sudeshna1992

Sudeshna1992

23-11-2020

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

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

Arun_Patidar

MVP

Total Posts

3.1K

Likes

1.2K

Correct Reply

882

Avatar

Arun_Patidar

MVP

Total Posts

3.1K

Likes

1.2K

Correct Reply

882
Arun_Patidar
MVP

23-11-2020

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

Answers (1)

Answers (1)

Avatar

Avatar

Vijayalakshmi_S

MVP

Avatar

Vijayalakshmi_S

MVP

Vijayalakshmi_S
MVP

23-11-2020

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