Expand my Community achievements bar.

SOLVED

AEM Author Image Target option

Avatar

Level 9

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
Level 9

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

Level 9
Basically, if we click on Target mode on the imagine, we cannot go edit the image anymore,

Avatar

Correct answer by
Level 9

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

Level 9

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

Level 9

Hi @Luca_Lattarini , 

Globally disabling is possible with customisation. 

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