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?
@Theo_Pendle @Arun_Patidar @Vijayalakshmi_S @BrianKasingli
Arun_Patidar
MVP
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; }
Vijayalakshmi_S
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