How to Disbale Target Option on Component Edit

        To disable "target" option when edit the component you need to add   property 
                 cq:disableTargeting="true" to cq:editConfig Node


               cq:actions="[text:Button,-,edit,delete]"
               cq:dialogMode="floating"
               cq:disableTargeting="true"
               jcr:primaryType="cq:EditConfig"

2 comments:

  1. Thank you so much for this post -- I hated seeing TARGET on every parsys.

    ReplyDelete
  2. In Editbase.js we can add config.disableTarget=true in addTargetingActions function to make target button hide globally. I want to know in which file config.disableTarget is assigned to "false".

    ReplyDelete