Expand my Community achievements bar.

Introducing Adobe LLM Optimizer: Own your brand’s presence in AI-Powered search and discovery

Mark Solution

This conversation has been locked due to inactivity. Please create a new post.

SOLVED

gray out component

Avatar

Level 1

hello all,

 

there is requirement that I want to gray out component (disable to edit component) in edit mode.

 

Thank You

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @Man699sr 

 Not sure about your exact requirement but if you simple want to disable editing than you can set cq:noDecoration as true at component level.

 

Thanks

Dipti

View solution in original post

2 Replies

Avatar

Community Advisor

you can do it simply by adding decorationTag 

https://aemlab.blogspot.com/2018/11/aem-restrict-component-editing-and.html

 

you can add extra classes also if you want to add styling in edit mode

Arun Patidar

AEM LinksLinkedIn

Avatar

Correct answer by
Community Advisor

Hi @Man699sr 

 Not sure about your exact requirement but if you simple want to disable editing than you can set cq:noDecoration as true at component level.

 

Thanks

Dipti