how to disable target feature in aem 6.0 globally | Community
Skip to main content
Pawan-Gupta
New Participant
October 16, 2015
Solved

how to disable target feature in aem 6.0 globally

  • October 16, 2015
  • 5 replies
  • 2099 views

Hello,

how to disable incontext target feature default available in aem 6?? i am not looking for component based disabling but globally across site/in cq if i want to do?

Thanks,

Pawan

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 leeasling

The only way to do this without modifying some javascript code (always a bad idea!) is to overlay the parsys component and on the cq:editConfig set cq:disableTargeting to true.

You'll need to modify the following nodes:

foundation/components/parsys/colctrl/cq:editConfig
foundation/components/parsys/cq:childEditConfig
foundation/components/parsys/cq:editConfig
foundation/components/parsys/new/cq:editConfig

5 replies

Lokesh_Shivalingaiah
New Participant
October 16, 2015

It should be in '/libs/cq/gui/components/authoring/clientlibs/editor/js/ui/ui.globalBar.js' 

Let me know if you couldnt figure it out.

Pawan-Gupta
New Participant
October 16, 2015

Hi,

Thanks for reply but i was looking for configuration based changed to achieve the same. 

I hope above file name you mean ui/toolbar.js or ui.toolbar namespace not ui.globalbar.js because i can't find with default 6 installation. anyhow in toolbar.js the target call goes based on targe json object which accept list of parameter where i think we can supply config.disableTargeting = true; as part of config parameter.

better place i found /libs/cq/ui/widgets/source/widgets/wcm/EditBase.js where you can easily configure config.disableTargeting = true; before addTargetingActions method call. it works perfectly fine.

but that is not my requirement. i want just based on configuration (not using parsys or iparsys).

Thanks,

Pawan

leeaslingAccepted solution
New Participant
October 16, 2015

The only way to do this without modifying some javascript code (always a bad idea!) is to overlay the parsys component and on the cq:editConfig set cq:disableTargeting to true.

You'll need to modify the following nodes:

foundation/components/parsys/colctrl/cq:editConfig
foundation/components/parsys/cq:childEditConfig
foundation/components/parsys/cq:editConfig
foundation/components/parsys/new/cq:editConfig

Lokesh_Shivalingaiah
New Participant
October 16, 2015

 but this would disable at the component level as well right !

New Participant
October 16, 2015

Yes it would, which is what he's requesting.