Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
SOLVED

AEM6.5 SP13 | Delete and move options

Avatar

Level 6

Hi All,

 

I have a requirement where delete option need to hide and move option need to keep as it is on site console. Tried using ACL/permission, both the options either hide or show.

Please advise how could 'delete' option can be hide?

Any help regarding this is highly appreciated.

 

Thanks,

Pradeep

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

@pradeepdubey82  Other option would be to add granite render condition. Please refer below URL for the same.

https://www.bounteous.com/insights/2020/06/10/control-aem-action-menus-render-conditions

View solution in original post

4 Replies

Avatar

Community Advisor

Hi @pradeepdubey82 

You can add below ACLs to deny access to 'Delete' option for a page.

Path: /libs/wcm/core/content/sites/jcr:content/actions/selection/deletepage

Privileges: jcr:all

Permission type: deny

 

I hope it helps!!

Avatar

Level 6

Actually we need visible move and delete for some users, if this solution followed it will hide for everyone.

Avatar

Community Advisor

@pradeepdubey82  You can create a group and assign this ACL to this specific group.
All users, for which 'Delete' should be removed/hidden, can be added into this group.
Rest of the users can be managed with other set of groups which doesn't have this ACL. Hence, all user belongs to this group will be able to see 'Delete' button.

Avatar

Correct answer by
Community Advisor

@pradeepdubey82  Other option would be to add granite render condition. Please refer below URL for the same.

https://www.bounteous.com/insights/2020/06/10/control-aem-action-menus-render-conditions