Expandir minha barra de realizações na Comunidade.

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

Esta conversa foi bloqueada devido à inatividade. Crie uma nova publicação.

SOLUCIONADO

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 Solução aceita

Avatar

Resposta correta de
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

Ver solução na publicação original

2 Respostas

Avatar

Resposta correta de
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.