[[!getResources? &parents=`50` &tpl=`testimonials_home` &tvFilter=`related_testimonials` &limit=`0` &sortdir=`DESC` &includeTVs=`1` &processTVs=`1` &includeContent=`1` &depth=`1` &sortby=`menuindex`]]
This question has been answered by johnosmith. See the first response.
[[getResources? &parents=`50` &tpl=`testimonials_home` &limit=`0` &includeTVs=`1` &includeTVList=`related_testimonials` &includeContent=`1` &tvFilter=`related_testimonials==%[[*id]]%` &depth=`1` &sortby=`menuindex` &sortdir=`DESC` ]]
I'm wondering if I'm doing something else wrong. I realised the getResources tag could be looking for the TV "related_testimonials" in &tpl=`testimonials_home` but it's a chunk and it doesn't contain the TV. All the testimonial resources use the template testimonial_landing and does indeed have the TV "related_testimonials". Btw, the gyms are referred to as studios, hence me using studios in the tag.[[!getResources? &parents=`50` &tvFilter=`related_studios==%[[*id]]%` &includeTVList=`related_studios` &tpl=`testimonials_home` &limit=`5` &sortdir=`DESC` &includeTVs=`1` &processTVs=`1` &includeContent=`1` &depth=`1` &sortby=`menuindex`]]
[[!getResources? &parents=`50` &tvFilter=`related_studios==[[*id]]` &includeTVList=`related_studios` &tpl=`testimonials_home` &limit=`5` &sortdir=`DESC` &includeTVs=`1` &processTVs=`1` &includeContent=`1` &depth=`1` &sortby=`menuindex`]]
&tvFilter=`related_studios===[[*id]]`
[[!getCache?
&element=`getResources`
&cacheKey=`persist_videos`
&cacheExpires=`3600`
&parents=`[[*parent]]`
&limit=`5`
&tpl=`tplVideoSide`
&includeTVs=`1`
&includeTVList=`Speaker,YoutubeURL`
&tvFilters=`Speaker==%[[*id]]%`
&showHidden=`1`
&select=`{"modResource":"id,pagetitle"}`
]]
Sorry you're having this much trouble. For what it's worth, I built a site that had a video section where videos where linked to speakers. On each video resource, I'd select a related speaker id via a Resource List TV. With getResources, I'd then show the related video speaker on the video page with a link to that speaker's page for more info. This sounds very similar to your situation and the following call worked and still does for me:
[[!getCache? &element=`getResources` &cacheKey=`persist_videos` &cacheExpires=`3600` &parents=`[[*parent]]` &limit=`5` &tpl=`tplVideoSide` &includeTVs=`1` &includeTVList=`Speaker,YoutubeURL` &tvFilters=`Speaker==%[[*id]]%` &showHidden=`1` &select=`{"modResource":"id,pagetitle"}` ]]
I wrapped getResources with getCache for caching purposes, but it's not required. The property we're concerned with is &tvFilters=`Speaker==%[[*id]]%`. This has always worked for me. So I'm surprised it's not playing nice for you.
Can you post the content of your testimonials_home chunk here?
<div class="client-testimonial-box"> <div class="col-sm-4"> <img src="[[+tv.main_image]]" class="img-responsive"> </div><!-- end col --> <div class="col-sm-7 col-sm-offset-1"> <h2>[[+pagetitle]]</h2> <p class="quote">[[+introtext]]</p> <a href="[[~[[+id]]]]"><span class="button">READ MORE</span></a> </div><!-- end col --> </div><!-- end client-testimonial-box -->