Here's the content of the chunk:
<div class="featured-main">
<div class="bl-featured-big">
<img src="[[+tv.mainImage:pthumb=`w=1170&h=491&zc=1`]]" class="img-responsive" alt="" />
<div class="bl-info">
<span>[[+publishedon:strtotime:date=`%b %d, %Y`]]</span>
<h3><a href="[[~[[+id]]]]">[[+pagetitle]]</a></h3>
<a class="rmore" href="[[~[[+id]]]]">Continue Reading <i class="fa fa-arrow-right"></i></a>
</div>
</div>
</div>
Here's the output from an article without an image:
<div class="featured-main">
<div class="bl-featured-big">
<img src="" class="img-responsive" alt="" />
<div class="bl-info">
<span>Sep 01, 2015</span>
<h3><a href="entrep-news/2015/09/01/2015-women-entrepreneur-showcase-launched/">2015 Women Entrepreneur Showcase launched</a></h3>
<a class="rmore" href="entrep-news/2015/09/01/2015-women-entrepreneur-showcase-launched/">Continue Reading <i class="fa fa-arrow-right"></i></a>
</div>
</div>
</div>
So, it's still pulling this article, whereas, I'd like getResources to skip it and go to the next one, until it finds one with a mainImage.
Once again, here's the getResources call I'm using:
[[getResources?
&parents=`2`
&showHidden=`1`
&tpl=`featuredImageChunk`
&limit=`1`
&includeTVs=`1`
&tvFilters=`mainImage!=""`
&hideContainers=`1`
]]
and
&tvFilters=`mainImage==%`
I'm running out of hairs to pull out...