W
W
weranda2017-01-30 22:31:32
MODX
weranda, 2017-01-30 22:31:32

How to sort/display data in MODX (pdoResources) by a range of numbers in a TV parameter?

Greetings
I dug into pdoResources just now, but did not understand how to display only those resources for which the numerical value of the tv-parameter falls within a certain range.
Let's say that there are 100 resources with values ​​in the TV parameter from one to one hundred. Let's get this whole thing out:


The last ten resources will appear on the page, but I can’t figure out what to do to display those ten resources whose tv-field value is in the range, for example, from 20 to 50 or more or less than any digital value.
Please tell me how to implement this functionality.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
display: block, 2017-02-03
@weranda

number - string with three characters (000)

&prepareTVs=`number`
&where=`{"number:>=":"010","number:<=":"100"}`

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question