Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

non authoring components

Avatar

Former Community Member

Hi,

 

I am using AEM 6.1.

Could anyone please advise if we can keep some components as "non-authoring" , which means once developed and placed by developer, author will not have rights to change those ? Can we do that ? and How ?

Thanks,

Priyanka

1 Accepted Solution

Avatar

Correct answer by
Employee

Hi,

if you include a component in the template under a parsys the author should be able to edit but not remove. You can try adding the component directly into your JSP with a cq:include, then see if you can delete the component, shouldn't be able to. Some more info about creating a boilerplate template. [1] Also here is another article you could use to prevent edit access.


Alternatively you could add your component to a page and include that page, in this way you would be including the rendered code.

Regards,

Opkar

[1] http://adobeaemclub.com/creating-page-boilerplate-nodes/

[2]https://docs.adobe.com/docs/en/cq/5-6-1/developing/boilerplates.html

View solution in original post

3 Replies

Avatar

Correct answer by
Employee

Hi,

if you include a component in the template under a parsys the author should be able to edit but not remove. You can try adding the component directly into your JSP with a cq:include, then see if you can delete the component, shouldn't be able to. Some more info about creating a boilerplate template. [1] Also here is another article you could use to prevent edit access.


Alternatively you could add your component to a page and include that page, in this way you would be including the rendered code.

Regards,

Opkar

[1] http://adobeaemclub.com/creating-page-boilerplate-nodes/

[2]https://docs.adobe.com/docs/en/cq/5-6-1/developing/boilerplates.html

Avatar

Level 10

You can directly create the component as part of template. Dont have the dialog or editconfig created, author will not be able to change anything there.

Avatar

Level 9

FYI - the AEM 6.1 documentation for developing components is at

http://docs.adobe.com/docs/en/aem/6-1/develop/components.html

and includes the section on boilerplates.

- JK