-
MODX Staff
- 95 Posts
I am trying to display a listing of projects on a services page – each project page has a projectServicesTags TV and the services page also has this TV. The TV is using the autoTag input render to keep it easy for the client to add a new service. The individual projects may have more than one service tagged but the individual service page only has one of the tags assigned to it. Hope that makes sense, let me know if I can clarify that.
To get the projects to show up, I thought I had it working fine by adding a % before and after the filter – the filters are inserted by whatever the service document is tagged as, of which there will only be one.
[[getResources? &tpl=`project-listing-txt` &parents=`4` &includeTVs=`1` &processTVs=`1` &tvPrefix=`0` &tvFilters=`projectServiceTags==%[[*projectServiceTags?]]%`]]
The issue with this came up in the final review, they have two service pages that have the word "water" in – one is Water and the other is Wastewater. On the water page projects tagged with wastewater are also showing up. Any ideas or thoughts how I could circumvent this? Removing the initial % fixes it, however it prevents projects with multiple tags showing up on other services pages with the tag beyond the first one.
Thanks!
Dustin