Search code examples
multi-selectmodx-revolutiongetresource

Output Multiselect TV by getResource in modx revo


I try to output Multiselect TV with list of rescources by getResource.

When I output the tv [[*myMultiselectTV]] with two or more id output like this - idid - without any commas. And when I use

[[getResources? 
   &resources=`[[*myMultiselectTV]]` 
   &tpl=`productsList`
   &includeTVs=`1`
   &debug=`1`
   &processTVs=`1`
  ]]

I dont get anything.

When I output the tv with one id, I get the only one id and with getResource it render ok.

How push my multiselectTV in getResource with commas between ids?


Solution

  • Set commma as custom output type of your tv: enter image description here