How to use granite:rendercondition to hide "create folder" option to non-admin group users | Community
Skip to main content
cquser1
New Participant
December 4, 2020
Solved

How to use granite:rendercondition to hide "create folder" option to non-admin group users

  • December 4, 2020
  • 2 replies
  • 2295 views

Hi All,

 

I have a requirement to hide "create folder" option for non-admin users in the assets section of AEM author[6.5 version].

 

Any pointers/reference code/snippet on how to do this will be really helpful.

Best answer by narendragandhi
 
 
 

Hi @cquser1 ,

 

You can refer this article for a similar example where this was done for Quick Publish Action -  https://www.bounteous.com/insights/2020/06/10/control-aem-action-menus-render-conditions/

 

Since there are couple of places by which you could reach to create folder action you would need to overlay and add the render condition to all those places.

/libs/dam/gui/content/assets/jcr:content/actions/secondary/create/items/createfolder

/libs/dam/gui/content/assets/jcr:content/actions/selection/create/items/createfolder

 

Thanks

Narendra

2 replies

narendragandhi
narendragandhiAccepted solution
New Participant
December 4, 2020
 
 
 

Hi @cquser1 ,

 

You can refer this article for a similar example where this was done for Quick Publish Action -  https://www.bounteous.com/insights/2020/06/10/control-aem-action-menus-render-conditions/

 

Since there are couple of places by which you could reach to create folder action you would need to overlay and add the render condition to all those places.

/libs/dam/gui/content/assets/jcr:content/actions/secondary/create/items/createfolder

/libs/dam/gui/content/assets/jcr:content/actions/selection/create/items/createfolder

 

Thanks

Narendra

cquser1
cquser1Author
New Participant
December 7, 2020
Hi @narendragandhi, Thank you for your response. It helped.
New Participant
March 20, 2025

How did you do it? Did you overlay the node and create granite render condition node? Could you please send a snapshot of the properties you added?

SureshDhulipudi
New Participant
December 4, 2020

In User admin, you can create a group and give Read only access to that group and add users

This will hide Create option.