April 13, 2020
Estimated Post Reading Time ~

Creating a CQ widget that supports image drag and drop

You can create an AEM component that manages text and an image. Furthermore, the component created in this article has a CQ Dialog that lets a user select an image during design time. The component is used by the CQ parsys system, supports a Dialog with multiple tabs, and enables the functionality offered by the Content Finder (for example, drag-and-drop).

A CQ Widget that allows an image to be dragged from the content finder

When the user selects an image, it is displayed within the widget.

The CQ widget displays an image

In this article, the image is editable by a content author and can be dragged-and-dropped from the Content Finder.

For this article, the image:
1. Is a Dialog Widget (xtype of smartimage).
2. Must be configured in the Component's cq:editConfig to allow for dragging-and-dropping of images from the Content Finder, as shown in this illustration.

The CQ widget supports drag and drops from the Content Finder

To read this development article, click:
http://helpx.adobe.com/experience-manager/kb/creating-cq-widget-supports-image.html


By aem4beginner

No comments:

Post a Comment

If you have any doubts or questions, please let us know.