I've read through several posts about calling getImageList with pdo/getResources but cannot get an output.
On my homepage, I call a chunk containing a getImageList call using pdoResources. When I swap out the pdoResources call with the getImageList call, I get output. If I call the chunk used by getImageList &tpl directly from pdoResources, the html outputs (but not the MIGX placeholders). Hence, the issue seems to be between the pdoResources and getImageList calls.
Here are the calls and related chunks:
[[pdoResources?
&parents=`0`
&resources=`5` // resource 5 is on the same level as the homepage
&limit=`1`
&tpl=`carousel`
]]
[[!getImageList?
&tvname=`projects`
&tpl=`homeCarousel`
&limit=`1`
&where=`{"featuredNews":"yes"}` // filter results using the featuredNews tv, which is within the projects MIGX tv.
&docid=`[[+id]]`
]]
<div class="grid-6 carousel">
<img src="[[+projectImage]]">
<div class="carouselTout">
<p>[[+projectCaption]]</p>
</div><!--end carouselTout-->
</div><!-- end carousel -->
What am I missing here? I've tried the pdoResources call with &includeTVs, using a combo of the MIGX TV, and the TVs within, with no effect. I've tried filtering the output from pdoResources, vs. the getImageList call, and also not filtering at all just to see if that's the issue, with no effect.
Additional questions:
In pdoResources, the default for &limit is 0. Is 0==none, or is 0==unlimited? I assume the latter, since that's how getResources treats it.
In the case of the latter, is it needed in this scenario where pdoResources calls getImageList? For example, if I want four results, in which call should &limit=`4` be used?
In which call should results be filtered? As mentioned, I need to show only those where featuredNews==yes (I assume getImageList is the place, since pdoResources is simply calling the results of getImageList)?
Similarly, I also assume &includeTVs isn't needed in the pdoResources call, since processing is done by getImageList. Correct?
Thanks in advance - hopefully all of this isn't totally rudimentary and other folks can benefit from the answers!