Hi,
i created a player card (name, age, picture, points) with migx and can fetch the results to get in a ranking table (sort by by points) . For the rank i use the idx value. On some pages i want to show only one or some of the playercards and the problem is that idx always starts at "1" so for a single playercard the rank would also be 1 which is wrong. Is there a way to solve this with migx without adding another formfield "rank" where you have to change the rank manualy everytime the points change?
Best,
Mike
Its of course possible to prepare the json with a additional rank-field with an extra-snippet and put the result to getImageList as value, some like:
[[getImageList?
&value=`[[prepareRank? &json=`[[*yourMIGXtv]]`]]`
&tpl=`yourTpl`
&where=`{"name":"theName"}`
]]
It would also be possible to prepare the rank-field with a plugin, which runs OnDocFormSave