Hello,
We have a hard time for creating a custom plugin for a dialog pathfield.
The official documentation : CQ5 | Widgets API says that we can add plugins on pathfield
plugins : Object/Array An object or array of objects that will provide custom functionality for this component. The only requirement for a valid plugin is that it contain an init method that accepts a reference of type CQ.Ext.Component. When a component is created, if any plugins are available, the component will call the init method on each plugin, passing a reference to itself. Each plugin can then call methods or respond to events on the component as needed to provide its functionality. |
(function($) {
var plugin = CQ.Ext.extend(CQ.Ext.emptyFn, {
init: function(widget) {
console.log('Hello Plugin');
}
});
CQ.Ext.ComponentMgr.registerPlugin('customPlugin', plugin);
}($CQ));
<normalUrl
jcr:primaryType="cq:Widget"
fieldDescription=""
fieldLabel="URL"
name="./normalUrl"
xtype="pathfield"
rootPath=""
plugins="customPlugin"
/>
But it's not working, once we add the plugin the dialog doesn't work anaymore (no logs to investigate)
Is there a documentation for implementing a dialog plugin ?
Solved! Go to Solution.
Views
Replies
Total Likes
After talking to the AEM team - here are some recommended blogs to check out related to your use case:
http://experience-aem.blogspot.com/2014/03/aem-cq-56-pathfield-widget-with-search.html
http://experience-aem.blogspot.com/2014/04/aem-cq-56-sort-tree-nodes-of-browse-dialog-pathfield.html
http://experience-aem.blogspot.com/2013/09/cq-favorites-links-bookmarks-widget.html
Views
Replies
Total Likes
This is an older classic UI example. Most of the examples are based on Touch UI. I am searching to see if a few of our internal bloggers have covered this use case.
Views
Replies
Total Likes
After talking to the AEM team - here are some recommended blogs to check out related to your use case:
http://experience-aem.blogspot.com/2014/03/aem-cq-56-pathfield-widget-with-search.html
http://experience-aem.blogspot.com/2014/04/aem-cq-56-sort-tree-nodes-of-browse-dialog-pathfield.html
http://experience-aem.blogspot.com/2013/09/cq-favorites-links-bookmarks-widget.html
Views
Replies
Total Likes
Thanx for the blogs, this one Experiencing Adobe Experience Manager - Day CQ: AEM 62 - Classic UI extend Pathfield browse dialog t... gives us the solution.
The clientLib must be of category cq.widgets and not cq.wcm.edit
Views
Replies
Total Likes
Views
Likes
Replies