In a custom renderer for Collections, we've had a reference to a Cross Context Setting key of "site_folder" for several years.
collections.renderer.site_image = function(value, metaData, record, rowIndex, colIndex, store)
{
if (value)
{
if (value.includes("http")) // used for images with full url
{
var imgURL = value;
}
else
{
imgURL = '/sites/' + **MODx.config['site_folder']** + '/' + value;
}
console.log(MODx);
//return imgURL;
return '<img src="' + imgURL + '" width="64">';
}
};
After the update to 2.7.1 it appears that the value is no longer accessible in the MODx.config array
(or anywhere in the MODx array for that matter) and so the thumbnails are not being rendered. The only thing that changed was the MODX version. Collections and Cross Context Settings are both up-to-date.
In a custom renderer for Collections, we've had a reference to a Cross Context Setting key of "site_folder" for several years.
After the update to 2.7.1 it appears that the value is no longer accessible in the MODx.config array
(or anywhere in the MODx array for that matter) and so the thumbnails are not being rendered. The only thing that changed was the MODX version. Collections and Cross Context Settings are both up-to-date.