MIGX multiupload + pdoResources. Wrong paths to images.
Hello. Im using this https://rtfm.modx.com/extras/revo/migx/migx.tutorials/migx.use-resource-specific-media-source-and-multifile-uploader to upload images to gallery. So, i have catalog of galleries and use next code to show list of them:
[[!pdoResources? &parents=[[*id]] &limit=0 &where={"template:=":"11"} &tpl=tpl.catalog.portfolio &includeTVs=thumbnail ]]
And this is content of "tpl.catalog.portfolio":
<li> <div class="hover"> <a href="[[~[[+id]]]]" class="button center">More</a> </div> <img src="[[!getImageList? &docid=[[+id]]&tpl=tpl.gallery.thumbnail&tvname=gallery&limit=1]]" alt="" /> <div class="ln"></div> <p class="ttl">[[+pagetitle]]</p> </li>
And "tpl.gallery.thumbnail":
[[+image:is=``:then=[[phpthumbof? &input=images/items/1.jpg &options=new&w=220&h=260&zc=1&fltr[]=wmi|/img/watermark-mini.png|BR|70|25|25|0]]:else=[[+image:phpthumbof=new&w=220&h=260&zc=1&fltr[]=wmi|/img/watermark-mini.png|BR|70|25|25|0]]]]
As the result - it outputs filenames as they should be displayed, but path to them - is always first migx item's path. So i can see only images of first resource displayed by pdoResourse. And i dont know why it is so.
This code should output list of galleries with their first image as thumbnail.
ok, the problem was cos i set basePath in mediasources as "[[migxResourceMediaPath? &pathTpl=assets/resourceimages/{id}/ &createFolder=1]]" (as it's said here https://rtfm.modx.com/extras/revo/migx/migx.tutorials/migx.use-resource-specific-media-source-and-multifile-uploader) solved the problem by setting it non-cached "[[!migxResourceMediaPath? &pathTpl=assets/resourceimages/{id}/ &createFolder=1]]"