DropTarget for Component Embedded in Page (AEM 5.6.1)
We have an image component, its _cq_editConfig.xml is:
<?xml version="1.0" encoding="UTF-8"?> <jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0" cq:disableTargeting="{Boolean}true" jcr:primaryType="cq:EditConfig"> <cq:dropTargets jcr:primaryType="nt:unstructured"> <image jcr:primaryType="cq:DropTargetConfig" accept="[image/.*]" groups="[media]" propertyName="./fileReference"> </image> </cq:dropTargets> </jcr:root>
We have a page component ("Blurb") which includes this component as the "featuredImage", as well as a "body" parsys which allows the same component to be used:
<div> <h1>*Featured Image</h1> <cq:include path="featuredImage" resourceType="sitename/components/image"/> </div> <div> <h1>*Body</h1> <cq:include path="body" resourceType="sitename/components/page/blurb/parsys"/> </div>
If I place a sitename/components/image component in the parsys, I can drag an image from the content finder onto the component to set it. The featuredImage, however, will not accept the drag-n-drop from the content finder. If I open the featureImage's edit dialog, I can drag a content finder image to there. I am the admin user, there are no permission restrictions.
Is this a WCM bug? Is our component's editConfig missing something?
Thanks,
Dave