Hello
Using MODX Collections 4.0.0 beta1 Extra with MODX 3.0.1
When i choose collections.renderer.image, the preview is broken in the resource manager page because the image path is wrong :
the thumbnail src shows :
https://dev.kurtzdev.com/ecosave/prestations/management-environnemental.jpg
but it should be :
https://dev.kurtzdev.com/ecosave/assets/components/ecosave/images/prestations/management-environnemental.jpg
So i tried with a custom image renderer but it display the HTML code without interpreting it !
The thumbnail generation is OK but,
the image column in the resource manager page show the HTML code and not the preview.
<img src="/ecosave/assets/components/phpthumbof/cache/dossier-icpe.c1774bf5969c33d0d2f149847a0077f0.jpg" width="60">
the custom render snippet :
<?php
// Snippet customThumbnailRenderer
$imgName = $modx->getOption('value', $scriptProperties, '');
$imgPath = 'https://dev.kurtzdev.com/ecosave/assets/components/ecosave/images/';
$thumb = $modx->runSnippet('pthumb', [
'input' => $imgPath . $imgName,
'options' => '&w=60&h=60&zc=C'
]);
return '<img src="' . $thumb . '" width="60">';
Can anyone help me with this ?
Thank you in advance
/.