Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Settings no longer accessible via js in 2.7.1 #21

Open
ChrstnMgcn opened this issue Mar 1, 2019 · 1 comment
Open

Settings no longer accessible via js in 2.7.1 #21

ChrstnMgcn opened this issue Mar 1, 2019 · 1 comment

Comments

@ChrstnMgcn
Copy link

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.

@Jako
Copy link
Contributor

Jako commented Mar 18, 2019

Thats not a CCS issue. It is maybe caused by a MODX 2.7.1 issue. So better open the issue there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants