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 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 7
 
 
 

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 7
 
 
 

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