Expand my Community achievements bar.

SOLVED

Drag and Drop an Asset on pathfield

Avatar

Former Community Member

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

1 Accepted Solution

Avatar

Correct answer by
Administrator

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

View solution in original post

3 Replies

Avatar

Level 10

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

Avatar

Correct answer by
Administrator

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

Avatar

Level 1

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

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