How to disable the Target option from component Edit Configuration without overriding EditBase.js file | Community
Skip to main content
New Participant
October 16, 2015
Solved

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

  • October 16, 2015
  • 2 replies
  • 1940 views

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by sureshy2015

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

2 replies

sureshy2015
sureshy2015Accepted solution
New Participant
October 16, 2015

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

sureshy2015
New Participant
October 16, 2015

Please confirm If it solved your issue.