Tell me how to make a condition for the withdrawal so that [[* id]] - 1 was

[[getImageList? &tvname=`slider` &tpl=`slider` &docid=`1` &where=`{"MIGX_id:IN":"id"-[1]}` ]] 
  • What is this piece of code at all? - Naumov
  • remove javascript from tags. This is modx with its modx syntax. For this, contact modx.pro - DimenSi

1 answer 1

This can be done through modx I / O filters:

 &where=`{"MIGX_id:=":"[[*id:decrement=`1`]]"}`