We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 12491
    • 90 Posts
    Does anybody see things that arn.t compatible with 3.2.3 ?

    Thnx
    Hurby

    MCM.combo.Resource = function(config){
        config = config || {};
        Ext.applyIf(config,{
            id: 'mcm-combo-resource' 
    		,name: 'resourceID'
    		,hiddenName: 'resourceID'
            ,displayField: 'pagetitle'
            ,valueField: 'id'
    		,mode: 'remote'
    		,fields: ['id','pagetitle']
    		,forceSelection: true
    		,editable: false
            ,enableKeyEvents: true
    		,pageSize: 20
            ,url: MODx.config.connectors_url+'resource/index.php'
            ,baseParams: { 
    			 action: 'getList'
    			,showNone: true
    		}         
        });
        MCM.combo.Resource.superclass.constructor.call(this, config);
    };
    Ext.extend(MCM.combo.Resource,MODx.combo.ComboBox);
    Ext.reg('mcm-combo-resource',MCM.combo.Resource);

    This question has been answered by hurby. See the first response.

      Sommige mensen hebben aan een half woord genoeg
      • 22197
      • 40 Posts
      Hi Hurby

      Quote from: hurby at Nov 07, 2014, 11:41 PM
      Does anybody see things that arn.t compatible with 3.2.3 ?

      I bet you were struggling with the compatibility of the Modx Campaign Monitor Integration extra.

      Have you been able to find a work-around?

      Would be nice if you share it. I'm having the same problem.

      Regards

      Ludo
      • discuss.answer
        • 12491
        • 90 Posts
        Change mcm.combo.resource.js to this:

        MCM.combo.Resource = function(config){
            config = config || {};
            Ext.applyIf(config,{
                id: 'mcm-combo-resource' 
        	,name: 'resourceID'
        	,hiddenName: 'resourceID'
                ,displayField: 'pagetitle'
                ,valueField: 'id'
        	,mode: 'remote'
        	,fields: ['id','pagetitle']
        	,forceSelection: true
        	,editable: true
                ,enableKeyEvents: true
        	,pageSize: 20
                ,url: MODx.config.connector_url ? MODx.config.connector_url : MODx.config.connectors_url+'resource/index.php'
                ,baseParams: { 
        		action: MODx.config.connector_url ? 'resource/getList' : 'getList'
        		,showNone: true
        	}         
            });
            MCM.combo.Resource.superclass.constructor.call(this, config);
        };
        Ext.extend(MCM.combo.Resource,MODx.combo.ComboBox);
        Ext.reg('mcm-combo-resource',MCM.combo.Resource);


        and change this line in core/components/mcm/processors/campaigns/create.class.php

        	
        $URL = $modx->getOption('site_url'). $modx->makeUrl( (int)$props['resourceID'] );
        	
        


        into this

        
        
        $URL = $modx->makeUrl( (int)$props['resourceID'] );
        		
        		
        	


        Grtz
        Hurby
          Sommige mensen hebben aan een half woord genoeg
          • 22197
          • 40 Posts
          Thanks a lot, Hurby. It works.

          Ludo

          Quote from: hurby at Mar 30, 2015, 03:22 PM
          Change mcm.combo.resource.js to this:

          MCM.combo.Resource = function(config){
              config = config || {};
              Ext.applyIf(config,{
                  id: 'mcm-combo-resource' 
          	,name: 'resourceID'
          	,hiddenName: 'resourceID'
                  ,displayField: 'pagetitle'
                  ,valueField: 'id'
          	,mode: 'remote'
          	,fields: ['id','pagetitle']
          	,forceSelection: true
          	,editable: true
                  ,enableKeyEvents: true
          	,pageSize: 20
                  ,url: MODx.config.connector_url ? MODx.config.connector_url : MODx.config.connectors_url+'resource/index.php'
                  ,baseParams: { 
          		action: MODx.config.connector_url ? 'resource/getList' : 'getList'
          		,showNone: true
          	}         
              });
              MCM.combo.Resource.superclass.constructor.call(this, config);
          };
          Ext.extend(MCM.combo.Resource,MODx.combo.ComboBox);
          Ext.reg('mcm-combo-resource',MCM.combo.Resource);


          and change this line in core/components/mcm/processors/campaigns/create.class.php

          	
          $URL = $modx->getOption('site_url'). $modx->makeUrl( (int)$props['resourceID'] );
          	
          


          into this

          
          
          $URL = $modx->makeUrl( (int)$props['resourceID'] );
          		
          		
          	


          Grtz
          Hurby