Expand my Community achievements bar.

Radically easy to access on brand approved content for distribution and omnichannel performant delivery. AEM Assets Content Hub and Dynamic Media with OpenAPI capabilities is now GA.
SOLVED

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

Avatar

Level 8

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.

1 Accepted Solution

Avatar

Correct answer by
Level 8
 
 
 

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

View solution in original post

3 Replies

Avatar

Community Advisor

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

This will hide Create option.

dam_readonly.png

Avatar

Correct answer by
Level 8
 
 
 

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