A
A
Arthur Levenson2021-06-07 07:03:38
MODX
Arthur Levenson, 2021-06-07 07:03:38

How to properly filter json?

The site has implemented categories for product cards using TV. The categories are stored in possible TV values.
60b866950dd98763134065.jpg

Can you tell me how to correctly display the category I need on the page? I am using the &where parameter for getResources. Code example: !getResources?
&parents=`2`
&limit=`0`
&includeTVs=`class`
&processTVs=`class`
&tpl=`mobileShowCard`
&includeTVs=`class`
&where=`{"class:=":"roses","OR:class:= ":"middle"}`

If I write &where, no cards are displayed. if I do not specify &where, then the cards are displayed, but without filtering. tell me how to be?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Igor, 2021-06-17
@kiskiskit

https://docs.modx.com/current/en/extras/getresourc...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question