Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
SOLVED

AEM Author Image Target option

Avatar

Community Advisor

Hello everyone,

Is it possible to turn off Target option from image? Because from our anlaysys it is casuing the AEM to break

ThNKS

1982luca_0-1594958251493.png

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @Luca_Lattarini , 

Yes it is possible.

Set the below property in  cq:editConfig node of component where you do not want target option to be enabled. In your scenario add it in image component. 

cq:disableTargeting="true"

This will disable the target option. 

View solution in original post

5 Replies

Avatar

Community Advisor
Basically, if we click on Target mode on the imagine, we cannot go edit the image anymore,

Avatar

Correct answer by
Community Advisor

Hi @Luca_Lattarini , 

Yes it is possible.

Set the below property in  cq:editConfig node of component where you do not want target option to be enabled. In your scenario add it in image component. 

cq:disableTargeting="true"

This will disable the target option. 

Avatar

Community Advisor

Hi @Vaibhavi_J ,

I set up this cq:disableTargeting="true" every time my client builds a new component. Is there any way of setting this cq:disableTargeting="true" as default for each new element without my support to set up cq:disableTargeting="true" ?

Thanks

Avatar

Community Advisor

Hi @Luca_Lattarini , 

Globally disabling is possible with customisation. 

Article which @kautuk_sahni shared below has the steps to achieve the same.