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
{
"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":"[]"
}
]
}