Fetch with contains in String

Author Message

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

Daniel B

Friday 18 September 2009 3:31:21 am

Strike Ivo

Thanks

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.