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

    I´m having trouble with MIGX 2.0.0.

    I´m trying to do an easy banner rotator on my homepage. The problem is that something weird is happening and i´m getting some php errors:

    -----

    Notice: Undefined variable: prefix in C:\wamp\www\odirect\core\components\migx\model\migx\migx.class.php on line 55

    Notice: Use of undefined constant val - assumed 'val' in C:\wamp\www\odirect\core\components\migx\configs\grid\grid.config.inc.php on line 83

    Notice: Undefined index: tabs in C:\wamp\www\odirect\core\components\migx\model\migx\migx.class.php on line 195

    Notice: Undefined index: columns in C:\wamp\www\odirect\core\components\migx\model\migx\migx.class.php on line 199

    -----

    I´m doing this call on the banner rotator area:
    [[!getImageList? &tvname=`banner-rotator` &tpl=`test-img`]]


    Then i have a template associate TV called banner-rotator with the following MIGX code:

    Form Tabs
    [
    {"caption":"Image", "fields":[
        {"field":"image","caption":"Image","inputTV":"imageTV"}
    ]}
    ]


    Grid Columns
    [
    {"header": "Image", "width": "50", "sortable": "false", "dataIndex": "image","renderer": "this.renderImage"}
    ]


    My Output Chunk (test-img)
    <div><img src="[[+image]]" width="960" height="450" alt=""/></div>



    My question is... what i´m doing wrong?


    Many thanks in advance!! smiley [ed. note: legues last edited this post 14 years, 5 months ago.]
      • 4172
      • 5,888 Posts
      you have modx-system-setting 'debug' on?
      then set it to off.

      Notice on line 55,195,199 should be fixed on github-version.
        -------------------------------

        you can buy me a beer, if you like MIGX

        http://webcmsolutions.de/migx.html

        Thanks!
        • 16899
        • 284 Posts
        Where can i turn modx-system-setting 'debug' off? Sorry about this!!! sad
          • 16899
          • 284 Posts
          It´s done!!!! Perfect!!!! Thanks mate!!!!!! smiley
            • 16899
            • 284 Posts
            Now i´m just having a small bug!! Please see the attached image!!! When you do right-click on the image, it seems that the context menu is hidden!!! Any idea?
              • 4172
              • 5,888 Posts
              you tried to download the newest files from github?
                -------------------------------

                you can buy me a beer, if you like MIGX

                http://webcmsolutions.de/migx.html

                Thanks!
                • 16899
                • 284 Posts
                Nooo!! sad Then it´s just install as a normal package, right?
                  • 16899
                  • 284 Posts
                  Ok, i replaced all the files with this ones and the problems still there!!! sad
                    • 4172
                    • 5,888 Posts
                    I'm wondering why its working on my installations.

                    I think the issue is sitting in migx.tpl in this part:

                    Ext.onReady(function() {
                    var lang = '{/literal}{$migx_lang}{literal}';
                      for (var name in lang) {
                        MODx.lang[name] = lang[name];
                      }
                    
                            MODx.load({
                                xtype: 'modx-grid-multitvgrid-{/literal}{$tv->id}{literal}'
                                ,renderTo: 'tvpanel{/literal}{$tv->id}{literal}'
                                ,tv: '{/literal}{$tv->id}{literal}'
                                ,cls:'tv{/literal}{$tv->id}{literal}_items'
                                ,id:'tv{/literal}{$tv->id}{literal}_items'
                    			,columns:Ext.util.JSON.decode('{/literal}{$columns}{literal}')
                                ,configs: '{/literal}{$properties.configs}{literal}'
                    			,pathconfigs:Ext.util.JSON.decode('{/literal}{$pathconfigs}{literal}')
                                ,fields:Ext.util.JSON.decode('{/literal}{$fields}{literal}')
                                ,wctx: '{/literal}{$myctx}{literal}'
                                ,width: '97%'			
                            });
                      
                    });
                    


                    when I move the modx.load part into the Ext.onReady - function I get other issues.
                    I think I will turn it back as it was before and try to replace the translations on server-side.

                      -------------------------------

                      you can buy me a beer, if you like MIGX

                      http://webcmsolutions.de/migx.html

                      Thanks!
                      • 16899
                      • 284 Posts
                      Well i replace this code you gave me and didn´t solve the problem!! sad