Forums / Setup & design / Fetch with attribute_filter not work

Fetch with attribute_filter not work

Author Message

Daniele Nocentini

Friday 01 September 2006 12:53:12 am

I have a fetch function with attribute_filter for fetch some products, the code is:

{def $list_items=fetch('content','list',hash('parent_node_id',$node.node_id,
										  'class_filter_type', $class_filter_type, 
										  'class_filter_array', $class_array,
										  'attribute_filter', array( 'and', array(308, '=', false()), array(310, '=', false()) )	,
										  'sort_by', $node.sort_array,
										  'limit', $page_limit,
										  'offset', $view_parameters.offset,
										  'depth_operator', eq))

but the result is an array with 0 items, it's wrong because there are many products.

Antica Bottega Digitale srl
http://www.abd.it