Forums / Setup & design / Fetch with attribute_filter not work

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

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