This was fixed by including the &showHidden=`1` parameter in the getResources call (a required param when parsing Articles resources).
––
Hi all,
I'm looking to show the migx records of one resource in another resource, based on a TV value rather than the docid.
The best solution for this seemed to be using getResources and the &tvFilters parameter.
Here's my getResources call:
[[!getResources? &parents=`5` &tvFilters=`bike-featured==1` &tpl=`featured-bike-images` &includeTVs=`1` &processTVs=`1`]]
getResources tpl (aka getImageList call):
[[!getImageList?
&tvname=`migx-bike-images`
&tpl=`bike-images-tpl`
&docid=`[[+id]]`
]]
MIGX tpl:
[[!If?
&subject=`[[+bike-image-last]]`
&operator=`EQ`
&operand=`1`
&then=`{image : '[[+bike-image-large]]', thumb : '[[+bike-image-large:phpthumbof=`w=133&h=89&q=90`]]'}`
&else=`{image : '[[+bike-image-large]]', thumb : '[[+bike-image-large:phpthumbof=`w=133&h=89&q=90]]'},`
]]
Unfortunately, this is rendering nothing. If I just put the getImageList call into my document with a specified ID in the &docid parameter, it works fine.
Any thoughts as to why this isn't working using getResources and the &tvFilters parameter would be much appreciated!
[ed. note: presson83 last edited this post 11 years, 7 months ago.]