cq:dropTargets group to drag cq:page | Community
Skip to main content
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Amit_Kumar

use this in edit config.

<cq:dropTargets jcr:primaryType="nt:unstructured">
    <page
        jcr:primaryType="cq:DropTargetConfig"
        accept="[.*]"
        groups="[page]"/>
</cq:dropTargets>

accept takes regex so you can change that as per your requirements.

Why do you need this..any specific requirement?

5 replies

New Participant
February 4, 2019

Thanks - this is just what I was looking for this morning.

We have a 'Rich Link' component which renders Title, Link, Thumbnail, Tags etc from a target page as a Tile.

Next step is to define the default component in editable templates to allow this component to be created and linked when the page is dragged into the LayoutContainer.

I have tried various combinations of mime types but it is not creating - tried text/html which works for Experience Fragment and .* in the above example.

Amit_Kumar
New Participant
January 25, 2016

Can you share your dialogs for touch and classic UI?

Himanshu_Singhal
New Participant
January 22, 2016

@Amit_Kumar, thanks for your reply.

Scenario is, I've created reference components like carousals in my project. Now, in Siteadmin, I've given page hierarchy under that only carousals template will get display. The task is to use these created page as component and to drag it in our custom Asset Selector on Pages.

The solution you provided me, with the help of that I'm now able to drag cq:page from Content finder or Asset Finder in Asset Selector on any page but the problem I'm facing is, inside classic UI, Asset Selector JSP able to resolve page as component but in Touch UI, it's not, due to which some unexpected output is getting displayed on page. 

Please help me with this as well :) 

Amit_Kumar
New Participant
January 22, 2016
Amit_Kumar
Amit_KumarAccepted solution
New Participant
January 22, 2016

use this in edit config.

<cq:dropTargets jcr:primaryType="nt:unstructured">
    <page
        jcr:primaryType="cq:DropTargetConfig"
        accept="[.*]"
        groups="[page]"/>
</cq:dropTargets>

accept takes regex so you can change that as per your requirements.

Why do you need this..any specific requirement?