Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
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



Arun Patidar

View solution in original post

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



Arun Patidar

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