Answer the question
In order to leave comments, you need to log in
Modx. How to make GetImageList work with where parameter?
Something is wrong with my MIGX..
1) &where does not affect the selection, all images are displayed.
2) &where=`{ 'idx' : '1' }`
I had to add spaces in the line after and before the curly braces, otherwise the snippet would crash with an error. This is generally some kind of black magic, I have no idea how it works)
3) The initial task is to display images containing the substring "_thumb" in the name.
Answer the question
In order to leave comments, you need to log in
Solution: I didn’t see
&where=`{ "image:contains" : "_thumb" }`
the operator anywhere in the documentation contains
, I just inserted the pdoTools operator, which I once stumbled upon, by typing.
How to make a negation of this condition - apparently, you also need to search by typing or rummaging through the source codes.
It seems it's time to say goodbye to modex.
UPD.
Taki found documentation on this issue:
https://docs.modx.com/current/en/building-sites/ta...
It is still not clear how this relates to the where query. However containsnot
from the same help does not work.
Try using double quotes instead of single quotes:
&where=`{"idx":"1"}`
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question