Expand my Community achievements bar.

SOLVED

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

Avatar

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

Avatar

Correct answer by
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

2 Replies

Avatar

Correct answer by
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

Avatar

Level 4

Please confirm If it solved your issue.