How to inactive button in author mode? | Community
Skip to main content
Level 3
October 16, 2015
Solved

How to inactive button in author mode?

  • October 16, 2015
  • 2 replies
  • 1434 views

Hi all,

I am using a component on top of page which has edit and delete button.

I wan to make these buttons inactive for all author members except one group. It should be able to edit/delete with that specific group of member, no one else.

What is your best method?

Thanks

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Sham_HC

You might be able to set the cq:actions config to empty, and then add custom actions back in via the cq:actionConfigs child node. There by you can control by ACLs.

2 replies

BaharAuthor
Level 3
October 16, 2015

Avik Banerjee wrote...

Hi Bahar,

Could you please be more specific with your question here? We would be glad to assist.

Thanks-

Avik

 


Thanks Avik,

Sure, have you seen the image? I have two button in my component which is edit and delete the component.

Suppose I have Group A, Group B, Group C in my users of AEM. I want to keep this component readable by all groups A, B, C but only group A be able to do edit and delete the component.

I thought that should be good if these components be inactive when the other group login to system.

I hope it is more clear now.

Sham_HC
Sham_HCAccepted solution
Level 10
October 16, 2015

You might be able to set the cq:actions config to empty, and then add custom actions back in via the cq:actionConfigs child node. There by you can control by ACLs.