MODX Community

getResources by same tv value as current id

Have a getResources call on each case study page which pulls in two thumbs for case studies that are related. Each case study is categorized using a tv called “category” of which the values are: Print, Web and Identity. How do I edit the tvFilter value in the getResources call of any page to pull the same tv category value as the current resource (i.e.: if current page has tv value of “Web”, getResources will spit out only resources with “Web” tv value)? Thanks for any insights!

&tvFilters=`[[*YourTemplateVariableName]]`

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.