Hi
This is a noob question.
I have a set of resources in Modx Revolution 2 rc. And on my startpage I use the getResources add-on to fetch the resources into a jQuery slider. But I don’t want all the resources to display, just the ones with a TV (radiobutton) set to "true". So if the TV returns "false" the resource should be skipped.
I have understood that this can be done with the tvFilters property in getResources. And I have tried the following:
&tvFilters=`in_slider==true`
But this does not work. I guess I’m using wrong syntax or something obvious, but I have tried to figure this out by myself for the past hours and failed, so does anyone know what I’m doing wrong here?
This is my in_slider TV:
Input Type: Radio Options
Input Option Values: true||false
Default Value: true
Output Type: String
Thanks
It seems to me that that should work.
Do you have these in the tag?
&includeTVs=`1` &tvPrefix=``
I think getResources filters only raw data with its sql-query. default-value is not included in filtering-query.
So you have to set all your TVs explicit to true if you want to filter them with getResources. Or try it with Ditto.