Hi Team,
I have a requirement to disable component dialog so that only the specific group of users can edit. I have 2 components in page. But only one component is getting non-editable. Please find the below code. I have included the below code's WCMUsePojo class at template level but no use. I even kept this in other component but not working. How can I make all the components in a page non-editable? Please suggest.
ComponentContext componentContext = WCMUtils.getComponentContext(getRequest());
componentContext.setDecorate(false);
Thanks in Advance.
AryA
Solved! Go to Solution.
Views
Replies
Total Likes
Hi,
You can achieve this via filter as well,
check group against path and add componentContext.setDecorate(false);
e.g. https://github.com/arunpatidar02/aem63app-repo/blob/master/java/XFFilter.java
Hi @Dinu_Arya,
You can leverage the lock concept in the AEM templates to disable the editing option of the component
Hope this helps.
Thanks,
Kiran Vedantam
Hi @Dinu_Arya ,
If all the components in a page should be restricted to a certain groups, Please configure it through Group permissions.
else if its only for some components please check if the below thread helps.
Hi,
You can achieve this via filter as well,
check group against path and add componentContext.setDecorate(false);
e.g. https://github.com/arunpatidar02/aem63app-repo/blob/master/java/XFFilter.java
Views
Likes
Replies
Views
Likes
Replies