We launched new forums in March 2019—
join us there
.
In a hurry for help with your website?
Get Help Now!
Back to MODX.com
Forums
Docs
Revo Issues
Blog
My Forums
Products
Developing with xPDO
Search
using :IN with an array in a criteria array
<
1
2
>
73 Posts
atma
Reply #11,
16 years, 2 months ago
Earlier solution from Jason -
http://modxcms.com/forums/index.php/topic,46980.msg276323.html#msg276323
, working for me.
MODX Staff
10,725 Posts
opengeek
Reply #12,
16 years, 2 months ago
The original syntax should work fine in 2.0.0-pl and later.
<?php $criteria = array( "{$k1}:IN" => array(1,2,3), "OR:{$k2}:IN" => array('a', 'b', 'c') ); ?>
Jason Coward
Chief Architect @ MODX
http://www.jasoncoward.com
|
http://twitter.com/drumshaman
|
https://github.com/opengeek
<
1
2
>