Hi,
I have an edit configuration which looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<jcr:root 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"
jcr:primaryType="cq:EditConfig">
<cq:dropTargets jcr:primaryType="nt:unstructured">
<title-data-reference
jcr:primaryType="cq:DropTargetConfig"
accept="[.*]"
groups="[title]"
propertyName="./title" />
</cq:dropTargets>
<cq:listeners
jcr:primaryType="cq:EditListenersConfig"
afteredit="REFRESH_PAGE" />
</jcr:root>
The drop taget in the JSP is defined like this:
<div class="<%=DropTarget.CSS_CLASS_PREFIX%>title-data-reference">
<b>Drop it here</b>
</div>
When I use this in a "normal" component drag and drop from the content finder works fine. When I *** the same edit configuration and the same drop target code to my page component, which has sling:resourceSuperType="foundation/components/page" specified, the drop area is not recognisable as a drop area.
Both component and the page component dialog have a pathfield widget defined:
<?xml version="1.0" encoding="UTF-8"?>
<jcr:root 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"
jcr:primaryType="cq:Widget"
fieldLabel="Titel"
name="./title"
rootTitle="Titel"
xtype="pathfield"
rootPath="/etc/xxx/titles">
</jcr:root>
Is a page component different from a "normal" component so that it does not accept a drop? Am I missing something else?
Thanks in advance,
Ronald