We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 19975
    • 429 Posts
    I have created a gallery of images using MIGX but when uploading multiple images the preview thumbnail/s use incorrect URL/s. The website is located within a sub-directory ""www.domain.com/modx" but the thumbnail URL is generated as http://domain.com/modx//modx/assets/images. Is there any way to modify the URL path used within the thumbnail src?

    {
      "formtabs":[
        {
          "MIGX_id":1,
          "caption":"Image",
          "fields":[
            {
              "field":"title",
              "caption":"Title",
              "MIGX_id":1
            },
            {
              "MIGX_id":2,
              "field":"image",
              "caption":"Image",
              "inputTV":"",
              "inputTVtype":"image",
              "configs":"",
              "sourceFrom":"migx",
              "sources":"",
              "inputOptionValues":"",
              "default":""
            },
            {
              "MIGX_id":3,
              "field":"description",
              "caption":"Description",
              "inputTV":"",
              "inputTVtype":"",
              "configs":"",
              "sourceFrom":"config",
              "sources":"",
              "inputOptionValues":"",
              "default":""
            }
          ]
        }
      ],
      "contextmenus":"update",
      "actionbuttons":"upload||loadfromsource",
      "columnbuttons":"",
      "filters":"[]",
      "extended":{
        "migx_add":"Add Image",
        "formcaption":"[[+pagetitle]] Images",
        "update_win_title":"Upload Images",
        "win_id":"resourcegallery",
        "maxRecords":"",
        "addNewItemAt":"bottom",
        "multiple_formtabs":"",
        "actionbuttonsperrow":4,
        "winbuttonslist":"cancel||done",
        "extrahandlers":"",
        "filtersperrow":4,
        "packageName":"",
        "classname":"",
        "task":"",
        "getlistsort":"",
        "getlistsortdir":"",
        "use_custom_prefix":"0",
        "prefix":"",
        "grid":"",
        "gridload_mode":2,
        "check_resid":1,
        "check_resid_TV":"",
        "join_alias":"",
        "has_jointable":"yes",
        "getlistwhere":"",
        "joins":"",
        "cmpmaincaption":"",
        "cmptabcaption":"",
        "cmptabdescription":"",
        "cmptabcontroller":"",
        "winbuttons":"",
        "onsubmitsuccess":"",
        "submitparams":""
      },
      "columns":[
        {
          "MIGX_id":1,
          "header":"ID",
          "dataIndex":"MIGX_id",
          "width":10,
          "renderer":"",
          "sortable":"false",
          "show_in_grid":1
        },
        {
          "MIGX_id":2,
          "header":"Title",
          "dataIndex":"title",
          "width":20,
          "sortable":"false",
          "show_in_grid":1,
          "renderer":"",
          "clickaction":"",
          "selectorconfig":"",
          "renderchunktpl":"",
          "renderoptions":"[]"
        },
        {
          "MIGX_id":3,
          "header":"Image",
          "dataIndex":"image",
          "width":20,
          "sortable":"false",
          "show_in_grid":1,
          "renderer":"this.renderImage",
          "clickaction":"",
          "selectorconfig":"",
          "renderchunktpl":"",
          "renderoptions":"[]"
        }
      ]
    }
      Martin Sanders - Design & Web Development
      • 4172
      • 5,888 Posts
      it all depends on what the file-browser returns and this depends on the selected media-source
        -------------------------------

        you can buy me a beer, if you like MIGX

        http://webcmsolutions.de/migx.html

        Thanks!
        • 19975
        • 429 Posts
        Thanks for the feedback. I have set the mediasource as attached. The gallery MIGX was setup following instructions published at http://rtfm.modx.com/extras/revo/migx/migx.tutorials/migx.use-resource-specific-mediasource-and-multifile-uploader

          Martin Sanders - Design & Web Development
          • 19975
          • 429 Posts
          I've updated the "baseUrlRelative" to "No" which resolved the issue.
            Martin Sanders - Design & Web Development