Answer the question
In order to leave comments, you need to log in
How do the &context and &where parameters work in Modx revo in the pdoResources snippet?
It 's not clear from what's been said here .
Here I found something, like this is what I need ... But still it's not clear how to use it.
Answer the question
In order to leave comments, you need to log in
The first restricts the sample to the specified context, i.e. resources will be displayed only from the specified context (relevant if you have several of them). The second is additional conditions for selection in the form of json, for example, &where=`{"template:=":8}` - we select only resources with a template whose id=8.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question