User permission access for the layout mode for AEM page

Avatar

Avatar
Level 1
suresh93
Level 1

Likes

0 likes

Total Posts

2 posts

Correct reply

0 solutions
View profile

Avatar
Level 1
suresh93
Level 1

Likes

0 likes

Total Posts

2 posts

Correct reply

0 solutions
View profile
suresh93
Level 1

01-06-2020

Can i disable the layout mode in AEM 6.5 for the particular content authors group who is able to edit the components of the page. if anyone have idea for disabling the layout mode..?

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,462 likes

Total Posts

3,329 posts

Correct reply

949 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,462 likes

Total Posts

3,329 posts

Correct reply

949 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile
Arun_Patidar
MVP

01-06-2020

There is no configuration OOTB to show/hide different modes.

You can do it though using javascript.

1. Create a servlet to check current user group and return false if user is not part of layout group, otherwise true.

2. Create a clientlibs 'cq.authoring.dialog' with javscript, in javscript call above servlet and based on response hide layout option

 

Example :

$( document ).ready(function() {
    $.get("demo_servlet.json", function(data, status){
    //console.log("Data: " + data + "\nStatus: " + status);
    if(data === 'false'){
    	$('#selectlayer-popover .editor-GlobalBar-layerSwitcherPopoverContent .coral3-ButtonList-item[data-layer="Layouting"]').hide();
    }
  });
});

Answers (1)

Answers (1)

Avatar

Avatar
Contributor
Employee
hamidk92094312
Employee

Likes

103 likes

Total Posts

240 posts

Correct reply

38 solutions
Top badges earned
Contributor
Shape 1
Ignite 1
Give Back 50
Give Back 5
View profile

Avatar
Contributor
Employee
hamidk92094312
Employee

Likes

103 likes

Total Posts

240 posts

Correct reply

38 solutions
Top badges earned
Contributor
Shape 1
Ignite 1
Give Back 50
Give Back 5
View profile
hamidk92094312
Employee

01-06-2020

You can use a custom rendering condition to overlay the standard action and impose specific conditions that must be fulfilled before it is rendered.

https://docs.adobe.com/content/help/en/experience-manager-64/developing/extending-aem/customizing-co...