Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

AEM Author Image Target option

1982luca
Level 8
Level 8

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
Vaibhavi
Correct answer by
Community Advisor
Community Advisor

Hi @1982luca , 

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
1982luca
Level 8
Level 8
Basically, if we click on Target mode on the imagine, we cannot go edit the image anymore,
Vaibhavi
Correct answer by
Community Advisor
Community Advisor

Hi @1982luca , 

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

1982luca
Level 8
Level 8

Hi @Vaibhavi ,

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

Vaibhavi
Community Advisor
Community Advisor

Hi @1982luca , 

Globally disabling is possible with customisation. 

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