So after reading how to use MIGX with getResources and reading a few posts I finally managed to get it working but before I could start celebrating a small issue came up.
MIGX is returning each image but it's only returning the pagetitle and content of the first record.
Here is the page rendered with the tpl I'm using.
http://thealogroup.com/teach-training-and-education/
As you can see my tpl is being applied but it's not returning all the info for the second and third item.
Here is another page without the tpl same exact getResources and MIGX calls.
http://thealogroup.com/migx-no-tpl
Here you can see my getResources call and MIGX are both returning all the data but for some reason when using the tpl it only works on the first MIGX record.
Here is my getResources call:
[[!getResources?
&parents=`[[*id]]`
&tpl=`getresources-migx-tpl`
&includeTVs=`1`
&processTVs=`1`
&includeContent=`1`
&showHidden=`1`
&limit=`0`]]
This is my the getresources-migx-tpl:
[[!getImageList?
&tvname=`migx-image-gallery`
&tpl=`migx-gallery-tpl`
&docid=`[[+id]]`
&limit=`1`]]
And my migx-gallery-tpl:
<li data-id="term-[[+idx]]" data-value="[[+pagetitle]]">
<figure>
<img src="[[+project-image:phpthumbof=`w=230&h=230`]]" alt="[[+pagetitle]]" />
<div class="work_overlay">
<div class="work_title">
<h2><a href="[[~[[+id]]]]">[[+pagetitle]]</a></h2>
[[+content]]
<a href="[[~[[+id]]]]"><div class="work_view" data-id="[[+idx]]"></div></a>
</div>
</div>
</figure>
</li>
Any help would be greatly appreciated.
Thanks.
[ed. note: benmarte last edited this post 12 years, 5 months ago.]