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
Solved! Go to Solution.
Views
Replies
Total Likes
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
Views
Replies
Total Likes
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.
Views
Replies
Total Likes
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
Views
Replies
Total Likes
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
Views
Replies
Total Likes
but this would disable at the component level as well right !
Views
Replies
Total Likes
Yes it would, which is what he's requesting.
Views
Replies
Total Likes