Great addition Bruno, thanks again!
Just tried it out and it works almost perfectly! (Working with your 4h old 2.4.2beta2)
If I add the update/remove_migx buttons the descriptions show up correctly (without doing anything custom like you showed in grid.config.inc) but if I also want a "duplicate" button, I got the same "no-text-in-button" issue as eightday, but only for this one, the other two buttons are fine^^=)...see attached screenshots.
Also tried the publish/unpublish functionality, love it!
Is it right that you HAVE to specify the renderoptions? Clicking on the cross/tick started to work when I specified them (decrypting the config you provided in the instructions above) like you did. But I also got this
error notice on top of the whole manager:
Notice: Undefined index: selectorconfig in /var/www/modx/core/components/migx/model/migx/migx.class.php on line 897 Notice: Undefined index: selectorconfig in /var/www/modx/core/components/migx/model/migx/migx.class.php on line 897 Notice: Undefined index: published in /var/www/modx/core/components/migx/model/migx/migx.class.php on line 926 Notice: Undefined index: published in /var/www/modx/core/components/migx/model/migx/migx.class.php on line 926 Notice: Undefined index: published in /var/www/modx/core/components/migx/model/migx/migx.class.php on line 926
Another thing I noticed is that when I have to choose the image for the renderoption, I cannot (as usually) select the correct media source in the file manager/browser...so I couldn't select the image because my default MS is pointing to a directory inside assets/site/ and the migx images are in assets/componentes...I have another MS "System" which has access from the webroot, that would work if I could select it =)...I just added the paths manually, but the images didn't render in the renderoptions grid but they did render (as can be seen in the screenshot above) in the actual migx grid, so just a little remark there...
And there also raised the question of how I would make getImageList respect that publish/unpublish stuff: I guess with a simple &where=`{"published:=":"1"}` param?
really great work again and again...
[ed. note: exside last edited this post 13 years, 6 months ago.]