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
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

How to disable the Target option from component Edit Configuration without overriding EditBase.js file

shikhas10482204
Level 3
Level 3

Hi All,

We have a requirement where we didn't want to display the Target and New option in Edit Configuration to the Author. One way to doing so is overriding the Editbase.js and move it under /apps/cq/ui/widgets/source/widgets/wcm/EditBase.js.This way the js file residing under apps will be picked.

The issue with the above approach is that we always need to manually update the file w.r.t to the AEM version \ change.

It will be helpful if somebody let us know if their is any configuration by which we can disable these options or any property in cq:Editconfig node by which this can be achieved.

Thanks in advance,

Shikha

1 Accepted Solution
sureshy2015
Correct answer by
Level 4
Level 4

Hi Sikha,

To disable "target" option when edit the component you need to add property cq:disableTargeting="true" to cq:editConfig Node.

Hope this resolves your issue.yes

View solution in original post

0 Replies
sureshy2015
Correct answer by
Level 4
Level 4

Hi Sikha,

To disable "target" option when edit the component you need to add property cq:disableTargeting="true" to cq:editConfig Node.

Hope this resolves your issue.yes

View solution in original post

sureshy2015
Level 4
Level 4

Please confirm If it solved your issue.