We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 12066
    • 48 Posts
    Hi,

    MODx Revolution 2.2.7 traditional

    I'm having a problem to get the Drag/Drop feature working with my CMP. All I get is the icon telling me something like: "You can't drop that thing here, not supported, not allowed".
    The docs aren't really a big kind of help, because everything mentioned there says that it's built-in functionality.

    CMP.panel.PANEL = function(config) {
        config = config || {};
        Ext.applyIf(config, {
            id: 'cmp-panel-panel-id'
            ,items: [{
                xtype: 'modx-combo'
                ,url: CONNECTOR_URL
                ,baseParams: {
                    action: 'ACTION'
                }
    ...
    

    CMP.panel.PANEL.superclass.constructor.call(this,config);
    }
    Ext.extend(CMP.panel.PANEL, MODx.FormPanel, {
      SOME FUNCTIONS
    });
    


    I walked through some relevant MODx ExtJS files which are used to build / create FormPanels, but haven't found a hint on how to get it working. Additionally I haven't found a component yet to allow Drag/Drop functionality via a MODx.FormPanel.

    Strange thing: When creating a MODx.Window which automatically has a form included I am able to drop any element/resource/file from the tree on any field.


    Any hint, trick, help is really appreciated. [ed. note: herooutoftime last edited this post 10 years, 7 months ago.]
      • 12066
      • 48 Posts
      Alright,

      got it solved.
      Ext.extend(CMP.panel.PANEL, MODx.FormPanel
          ,{
              setup: function() {
                  this.fireEvent('ready');
      


      Firing the 'ready' event did the trick. Should have looked closer into MODx.FormPanel...