How can we add cq:dropTargets under cq:editConfig to drag cq:page from content finder pages?
Solved! Go to Solution.
Views
Replies
Total Likes
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?
Views
Replies
Total Likes
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?
Views
Replies
Total Likes
Read this for more details.
https://docs.adobe.com/docs/en/cq/5-6-1/developing/components.html#Configuring with cq:EditConfig Child Nodes
https://docs.adobe.com/docs/en/cq/5-6/widgets-api/index.html?class=CQ.wcm.EditBase
Views
Replies
Total Likes
@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 :)
Views
Replies
Total Likes
Can you share your dialogs for touch and classic UI?
Views
Replies
Total Likes
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.
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies