A
A
Alexander Timofeev2015-12-03 19:10:10
MODX
Alexander Timofeev, 2015-12-03 19:10:10

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

1 answer(s)
V
Vladimir Rebrov, 2015-12-03
@aldtimofeev

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 question

Ask a Question

731 491 924 answers to any question