Forums / Setup & design / Syntax error with attribute_filter in fetch

Syntax error with attribute_filter in fetch

Author Message

Marin Orlic

Sunday 28 August 2005 8:30:05 am

Hi all,

I'm getting a weird syntax error when using attribute_filter with fetch:

{let users=fetch( content, list, hash( parent_node_id, 230, 
					     attribute_filter, array( 'and', array ( 294, '=', false() ) ) ) )}

The error is:

eZTemplate:set 
parser error @ .../template.tpl:5
Empty variable name at [( content, list, hash( parent_node_id, 230, 
					     attribute_filter, array( 'and', array ( 294, '=', false() ) ) ) )]

Same thing when I added class filter, but works just fine with class filter and no attribute filter.. so I guess attribute filter is specified incorrectly? I've tried using the class/attribute syntax also, same thing.

I have another template that uses attribute_filter succesfully:

{set list_items=fetch_alias( children, hash(    parent_node_id, $node.node_id,
						  offset, $view_parameters.offset,
 							  attribute_filter, array( array( 319, '=', true() ) ),
							  sort_by, $node.sort_array,
							  limit, $page_limit ) )}

Any ideas? (I've cleared all the caches :)