Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

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

Avatar

Avatar
Validate 50
Level 6
cquser1
Level 6

Likes

75 likes

Total Posts

313 posts

Correct Reply

15 solutions
Top badges earned
Validate 50
Validate 25
Validate 10
Validate 1
Give Back 50
View profile

Avatar
Validate 50
Level 6
cquser1
Level 6

Likes

75 likes

Total Posts

313 posts

Correct Reply

15 solutions
Top badges earned
Validate 50
Validate 25
Validate 10
Validate 1
Give Back 50
View profile
cquser1
Level 6

04-12-2020

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.

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Give Back
Level 2
narendragandhi
Level 2

Likes

17 likes

Total Posts

14 posts

Correct Reply

6 solutions
Top badges earned
Give Back
Boost 5
Boost 3
Boost 10
Boost 1
View profile

Avatar
Give Back
Level 2
narendragandhi
Level 2

Likes

17 likes

Total Posts

14 posts

Correct Reply

6 solutions
Top badges earned
Give Back
Boost 5
Boost 3
Boost 10
Boost 1
View profile
narendragandhi
Level 2

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

Answers (1)

Answers (1)

Avatar

Avatar
Ignite 1
MVP
SureshDhulipudi
MVP

Likes

163 likes

Total Posts

174 posts

Correct Reply

49 solutions
Top badges earned
Ignite 1
Give Back 5
Give Back 3
Give Back 10
Give Back
View profile

Avatar
Ignite 1
MVP
SureshDhulipudi
MVP

Likes

163 likes

Total Posts

174 posts

Correct Reply

49 solutions
Top badges earned
Ignite 1
Give Back 5
Give Back 3
Give Back 10
Give Back
View profile
SureshDhulipudi
MVP

04-12-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.

dam_readonly.png