Forums / Developer / Fetch with contains in String
Daniel B
Friday 18 September 2009 2:26:04 am
Good Morning
$nodes =& eZContentObjectTreeNode::subTreeByNodeId(array('ClassFilterType' => 'include', 'ClassFilterArray' => array( 'user_group' ), 'AttributeFilter' => array( array( 'name', '=', 'product' ) ), 'SortBy' => array( 'published', false) ),$GroupRoot);
thats working, but i need a contain-filter for the nodename. i look for "contains" but not found a solution.Example
'name', 'contains', 'product'
Any idea?
thx Daniel
Ivo Lukac
Friday 18 September 2009 2:49:33 am
did you try:'name', 'like', '*product*'
http://www.linkedin.com/in/ivolukac http://www.netgen.hr/eng/blog http://twitter.com/ilukac
Friday 18 September 2009 3:31:21 am
Strike Ivo
Thanks