Hello everyone,
I use a migx image Tv in a getResources call (using getImageList), but it just output the first image of each resource multiple times...
GetResources Call
<ul id="news">
[[!getResources? &parents=`1091` &tpl=`news-web` &sortby=`menuindex` &limit=`20` &includeTVs=`1` &processTVs=`1` &showUnpublished=`0` &showHidden=`1` ]]
</ul>
GetResources tpl (news-web)
<li class="news-item news-[[+idx]]">
[[!getImageList? &tvname=`imagesNews` &tpl=`news-image-web` &docid=`[[+id]]`]]
</li>
getImageList tpl (news-image-web)
<img class="image-news [[+id]] [[+idx]]" width="900" height="345" title="[[+longtitle]]" src="[[+image]]" />
For exemple when getresources outputs the first resource wich has 3 images, the [[+id]], [[+longtitle]] of the resource are correctly populated, the [[+image]] always returns the first image and [[+idx]] is correctly incremented...
I really don't know what I'm doing wrong... help would be greatly appreciated!!
Output exemple:
<li class="news-item news-1">
<img class="image-news 1117 1" title="My Resource title" src="assets/image/news/image1.jpg" height="345" width="900">
<img class="image-news 1117 2" title="My Resource title" src="assets/image/news/image1.jpg" height="345" width="900">
<img class="image-news 1117 3" title="My Resource title" src="assets/image/news/image1.jpg" height="345" width="900">
</li>