What is the purpose of cq:dropTargets and cq:inplaceEditing in CQ5.4? | Community
Skip to main content
Oct 16, 2015 2:26 AM UTC
Solved

What is the purpose of cq:dropTargets and cq:inplaceEditing in CQ5.4?

Hi,

I have created one custom component it has a feature drag an image from content finder and drop it in custom component.It works well without using cq:dropTargets node,cq:inplaceEditing and all those edit behaviour stuff's.

For adding the listeners node , cq:editConfig node is necessary . Coz listeners node comes under editConfig.

Is these nodes (inplaceEditConfig,dropTargets) are necessary for editing,drag and drop functionalities without these i able to drag drop and editing the content??

Thanks in advance

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
smacdonald2008
smacdonald2008Accepted solution
Level 10
Oct 16, 2015 2:26 AM UTC

According to the AEM docuemntation - these define the drop target:

https://dev.day.com/docs/en/cq/current/developing/components.html#Configuring the Edit Behaviour of a Component

You should not be able to drag and drop and image without defining a cq:dropTargets node. 

5 replies

smacdonald2008
Level 10
Jan 10, 2018 4:09 PM UTC

That is because this thread is 3 years old and doc team moved doc URLS.

Translate
edubey
Level 10
Jan 9, 2018 4:52 AM UTC
Level 2
Jan 9, 2018 4:02 AM UTC

This link does not work!

Translate
smacdonald2008
smacdonald2008Accepted solution
Level 10
Oct 16, 2015 2:26 AM UTC

According to the AEM docuemntation - these define the drop target:

https://dev.day.com/docs/en/cq/current/developing/components.html#Configuring the Edit Behaviour of a Component

You should not be able to drag and drop and image without defining a cq:dropTargets node. 

Translate
Oct 16, 2015 2:26 AM UTC

In my case it works as excepted without using drop target (CQ 5.4).

Don't know how its working ?

One important point we need to notice here is I have removed the editConfig and dropTargets node from existing "image" component in /libs/foundation/components/image.Then i dragged the image component from side kick to my web page and dialog got opened by double clicking the component.

I able to drag an image from content finder to the modified image component which i placed earlier in my web page.

So we can conclude that dropTarget is not necessary for dropping an image from content finder to component in this case the question will raise "what is the purpose of using this(dropTarget)" .

Correct me if I am wrong.

I hope my reply is clear.

Translate