tvFilters modx in array (has one) — how to select one from a list

Practice




how to select tvFilters modx in array (has one) from a list

if the condition

[[!getResources? &showHidden=`1` &limit=`204` &tpl=`main.PrRowTpl` &includeContent=`1` &includeTVs=`1` &processTVs=`1` &parents=`35` &depth=`1` &tvFilters=`ffff==[[*id]]` ]]

how do I select ffff where at least one item from the list matches the given id?

try

&tvFilters=`ffff==%[[*id]]%`


but there can be problems if a number is a substring of another number
1 and 111 and 11

Comments

To leave a comment

If you have any suggestion, idea, thanks or comment, feel free to write. We really value feedback and are glad to hear your opinion.
To reply

Lectures and tutorial on "Running server side scripts using PHP as an example (LAMP)"

Terms: Running server side scripts using PHP as an example (LAMP)