Drag and Drop an Asset on pathfield | Community
Skip to main content
October 16, 2015
Solved

Drag and Drop an Asset on pathfield

  • October 16, 2015
  • 3 replies
  • 1600 views

Hi,

We are facing a really weird issue. We have a path field configured inside a multifield component that accepts a number of details per item. One of the field is a pathfield. Now it is available OOB feature that we can drag an image from Content Finder tab on to the pathfield. It fills the field with path to the image being dragged.

Now when we click on edit to edit the component, it allows dragging the image from Content Finder. Added one image like this and clicked on OK. Again clicked on edit to edit the dialog. Clicked on cancel. Now if I again try to edit the dialog by clicking on edit, it will not allow me to drag and drop an image or asset from content finder tab in any of the path field. I can now click on OK or cancel.In either case, without a page refresh, it will not allow me to again drag and drop an image from content finder.

Any Suggestions or pointers how to resolve this behavior. The screen shots are available as attachment

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 kautuk_sahni

Hi anujrattan

As scott mentioned in his reply that there exist a community article for "Creating AEM multifield components that support drag and drop and uses custom xtypes", i have tested this out, and its working fine for me.

Apart from the community article, there is one more blog post showing "Single Image in multi-field item" and "Multiple Image in multi-field item" with all the screenshots and step by step to execute the same.

Link:- http://experience-aem.blogspot.in/2014/04/aem-cq-56-slide-show-component.html

 

I hope this would help you.

 

Thanks and Regards

Kautuk Sahni

3 replies

smacdonald2008
Level 10
October 16, 2015

Looks like something was not set properly. We have a community article with an example package that contains the Hero component: 

[img]picDrag.png[/img]

In this pic - you can see assets from the Content Finder being successfully dragged and dropped. 

See: https://helpx.adobe.com/experience-manager/using/creating-aem-multifield-components.html

kautuk_sahni
Community Manager
kautuk_sahniCommunity ManagerAccepted solution
Community Manager
October 16, 2015

Hi anujrattan

As scott mentioned in his reply that there exist a community article for "Creating AEM multifield components that support drag and drop and uses custom xtypes", i have tested this out, and its working fine for me.

Apart from the community article, there is one more blog post showing "Single Image in multi-field item" and "Multiple Image in multi-field item" with all the screenshots and step by step to execute the same.

Link:- http://experience-aem.blogspot.in/2014/04/aem-cq-56-slide-show-component.html

 

I hope this would help you.

 

Thanks and Regards

Kautuk Sahni

Kautuk Sahni
schmid
February 5, 2016

One possible work around would be to trigger a page refresh upon saving the dialog.

https://helpx.adobe.com/experience-manager/kb/RefreshPageWhenModifyDialog.html