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

Avatar

Avatar
Level 1
Sudeshna1992
Level 1

Likes

0 likes

Total Posts

4 posts

Correct reply

0 solutions
View profile

Avatar
Level 1
Sudeshna1992
Level 1

Likes

0 likes

Total Posts

4 posts

Correct reply

0 solutions
View profile
Sudeshna1992
Level 1

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 

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,442 likes

Total Posts

3,314 posts

Correct reply

941 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,442 likes

Total Posts

3,314 posts

Correct reply

941 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile
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
Boost 500
MVP
Vijayalakshmi_S
MVP

Likes

572 likes

Total Posts

725 posts

Correct reply

239 solutions
Top badges earned
Boost 500
Give Back 50
Give Back 5
Ignite 10
Ignite 5
View profile

Avatar
Boost 500
MVP
Vijayalakshmi_S
MVP

Likes

572 likes

Total Posts

725 posts

Correct reply

239 solutions
Top badges earned
Boost 500
Give Back 50
Give Back 5
Ignite 10
Ignite 5
View profile
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