Skip to content

Instantly share code, notes, and snippets.

@ig0r74
Last active September 8, 2019 19:58
Show Gist options
  • Save ig0r74/5f3dfc2513580346f6535d2edefc0059 to your computer and use it in GitHub Desktop.
Save ig0r74/5f3dfc2513580346f6535d2edefc0059 to your computer and use it in GitHub Desktop.
Как в MODX (pdoResources) сортировать/выводить данные по диапазону чисел в TV-параметре?
[[pdoResources?
&tpl=`showList`
&includeTVs=`number,image`
&limit=`10`
&prepareTVs=`number`
&where=`{"number:>=":"010","number:<=":"100"}`
]]
[[!pdoPage?
&limit=`5`
&element=`msListOrders`
&where=`{"msOrder.status:IN":[1,2,3,4]}`
]]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment