Thursday 02 February 2006 6:05:07 am
In an extension I need to make a search. In a template I would use : {def $results=fetch( 'content', 'search',
hash( 'text', 'product',
'class_id', 37,
'class_attribute_id', 262,
'subtree_array', array('208') ) )}
What's the equivalent in an extension ? I tried this but I've got wrong results : $text = 'product';
$params = array(
'ClassId' => '37',
'ClassAttributeId' => '262',
'SubtreeArray' => array( '208' )
);
$results =& eZSearch::search( $text , $params );
|