We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 24629
    • 370 Posts
    Hi,
    i made a MIGX CMP to list some items (boats) with each item i use another MIGX config to list several Photos.
    I set the mediasource for the photos in BOTH MIGX configs to 3.
    Still in the grid the thumbnails don't show because migx usses the wrong mediasource in phpthumb src
    http://mydomain/connectors/system/phpthumb.php?h=60&src=54881b140d39a-tandeborstels.png&source=2

    Anyone any idea why MIGX insist on using mediasource 2?

    Thanks [ed. note: rdaneeel last edited this post 11 years, 10 months ago.]
      • 4172
      • 5,888 Posts
      is it a MIGX-field inside a MIGXdb - CMP?

      maybe, it doesn't know, for which context it should get the mediasource.
      Did you define the mediasource for both, the web and mgr-context in the MIGX-configuration
        -------------------------------

        you can buy me a beer, if you like MIGX

        http://webcmsolutions.de/migx.html

        Thanks!
        • 24629
        • 370 Posts
        here are the JSONS for both MIGX configs

        First columns
        [{"MIGX_id":"4","header":"id","dataIndex":"id","width":"5","sortable":"true","show_in_grid":"1","renderer":"","clickaction":"","selectorconfig":"","renderchunktpl":"","renderoptions":""},{"MIGX_id":"3","header":"Published","dataIndex":"published","width":"50","sortable":"true","show_in_grid":"1","renderer":"this.renderClickCrossTick","clickaction":"switchOption","selectorconfig":"","renderchunktpl":"","renderoptions":""},{"MIGX_id":"1","header":"Zeilnummer","dataIndex":"zeilnummer","width":"20","sortable":"true","show_in_grid":"1","renderer":"","clickaction":"","selectorconfig":"","renderchunktpl":"","renderoptions":""},{"MIGX_id":"2","header":"Aanbieder","dataIndex":"naam","width":"","sortable":"true","show_in_grid":"1","renderer":"","clickaction":"","selectorconfig":"","renderchunktpl":"","renderoptions":""}]


        First formtabs:
        [{"MIGX_id":1,"caption":"Schakel","print_before_tabs":"0","fields":[{"MIGX_id":1,"field":"zeilnummer","caption":"Zeilnummer","description":"","description_is_code":"0","inputTV":"","inputTVtype":"","validation":"","configs":"","restrictive_condition":"","display":"","sourceFrom":"config","sources":"","inputOptionValues":"","default":"","pos":1},{"MIGX_id":2,"field":"bouwer","caption":"Bouwer","description":"","description_is_code":"0","inputTV":"","inputTVtype":"","validation":"","configs":"","restrictive_condition":"","display":"","sourceFrom":"config","sources":"","inputOptionValues":"","default":"","pos":2},{"MIGX_id":3,"field":"bouwnummer","caption":"Bouwnummer","description":"","description_is_code":"0","inputTV":"","inputTVtype":"","validation":"","configs":"","restrictive_condition":"","display":"","sourceFrom":"config","sources":"","inputOptionValues":"","default":"","pos":3},{"MIGX_id":4,"field":"bouwjaar","caption":"Bouwjaar","description":"","description_is_code":"0","inputTV":"","inputTVtype":"","validation":"","configs":"","restrictive_condition":"","display":"","sourceFrom":"config","sources":"","inputOptionValues":"","default":"","pos":4},{"MIGX_id":5,"field":"gewicht","caption":"Gewicht","description":"","description_is_code":"0","inputTV":"","inputTVtype":"","validation":"number","configs":"","restrictive_condition":"","display":"","sourceFrom":"config","sources":"","inputOptionValues":"","default":"","pos":5},{"MIGX_id":13,"field":"beschrijving","caption":"Beschrijving","description":"","description_is_code":"0","inputTV":"","inputTVtype":"richtext","validation":"","configs":"","restrictive_condition":"","display":"","sourceFrom":"config","sources":"","inputOptionValues":"","default":"","pos":6},{"MIGX_id":6,"field":"meetbrief","caption":"Meetbrief","description":"","description_is_code":"0","inputTV":"","inputTVtype":"checkbox","validation":"","configs":"","restrictive_condition":"","display":"","sourceFrom":"config","sources":"","inputOptionValues":"ja==1","default":"1","pos":7},{"MIGX_id":7,"field":"published","caption":"Schakel tonen","description":"","description_is_code":"0","inputTV":"","inputTVtype":"checkbox","validation":"","configs":"","restrictive_condition":"","display":"","sourceFrom":"config","sources":"","inputOptionValues":"ja==1","default":"1","pos":8},{"MIGX_id":17,"field":"prijs","caption":"Prijs","description":"","description_is_code":"0","inputTV":"","inputTVtype":"","validation":"","configs":"","restrictive_condition":"","display":"","sourceFrom":"config","sources":"","inputOptionValues":"","default":"","pos":9}],"pos":1},{"MIGX_id":2,"caption":"Aanbieder","print_before_tabs":"0","fields":[{"MIGX_id":8,"field":"naam","caption":"Naam aanbieder","description":"","description_is_code":"0","inputTV":"","inputTVtype":"","validation":"","configs":"","restrictive_condition":"","display":"","sourceFrom":"config","sources":"","inputOptionValues":"","default":"","pos":1},{"MIGX_id":9,"field":"adres","caption":"Adres","description":"","description_is_code":"0","inputTV":"","inputTVtype":"","validation":"","configs":"","restrictive_condition":"","display":"","sourceFrom":"config","sources":"","inputOptionValues":"","default":"","pos":2},{"MIGX_id":10,"field":"woonplaats","caption":"Woonplaats","description":"","description_is_code":"0","inputTV":"","inputTVtype":"","validation":"","configs":"","restrictive_condition":"","display":"","sourceFrom":"config","sources":"","inputOptionValues":"","default":"","pos":3},{"MIGX_id":11,"field":"telefoon","caption":"Telefoon","description":"","description_is_code":"0","inputTV":"","inputTVtype":"","validation":"","configs":"","restrictive_condition":"","display":"","sourceFrom":"config","sources":"","inputOptionValues":"","default":"","pos":4},{"MIGX_id":12,"field":"email","caption":"E-mail adres","description":"","description_is_code":"0","inputTV":"","inputTVtype":"","validation":"","configs":"","restrictive_condition":"","display":"","sourceFrom":"config","sources":"","inputOptionValues":"","default":"","pos":5}],"pos":2},{"MIGX_id":3,"caption":"Foto's","print_before_tabs":"0","fields":[{"MIGX_id":14,"field":"foto","caption":"Foto's","description":"","description_is_code":"0","inputTV":"","inputTVtype":"migx","validation":"","configs":"Schakelfotos","restrictive_condition":"","display":"","sourceFrom":"migx","sources":"[{\"MIGX_id\":\"1\",\"context\":\"web\",\"sourceid\":\"3\"}]","inputOptionValues":"","default":"","pos":1}],"pos":3}]


        Second columns (this migx is used for selecting multiple photos)
        [{"MIGX_id":"2","header":"image","dataIndex":"foto","width":"","sortable":"false","show_in_grid":"1","renderer":"this.renderImage","clickaction":"","selectorconfig":"","renderchunktpl":"","renderoptions":""}]


        Second Formtabs:
        [{"MIGX_id":4,"caption":"pictures","print_before_tabs":"1","fields":[{"MIGX_id":16,"field":"foto","caption":"foto","description":"","description_is_code":"0","inputTV":"botenbankfoto","inputTVtype":"","validation":"","configs":"","restrictive_condition":"","display":"","sourceFrom":"migx","sources":"[{\"MIGX_id\":\"1\",\"context\":\"web\",\"sourceid\":\"3\"}]","inputOptionValues":"","default":"","pos":1}],"pos":1}]


        I use it on a custom table and everything works except the thumbnails in the grid that is displayed on the CMP

        Rdg
          • 4172
          • 5,888 Posts
          perhaps

          "sourceFrom":"config"


          vs

          "sourceFrom":"migx"
            -------------------------------

            you can buy me a beer, if you like MIGX

            http://webcmsolutions.de/migx.html

            Thanks!
            • 24629
            • 370 Posts
            Hi Bruno,
            thanks for taking the time to answer.
            Nope changing the 'sourcefrom' change doesn't help.
            it seems MIGX just grabs the default mediasource. no matter what i fill out.