Norman Leutner
|
Monday 27 February 2006 12:35:36 am
Hi, I got a problem when filtering with the attribute_filter.
If I use the attribute 'firma' everything works fine. If I use the attribute 'plz' I got the following error and no result is returned:
Notice: Feb 27 2006 09:15:23
Attribute filter returned false
Both attributes are string. The only difference is the name of the attribute. Here's the code:
{* Suche Firma *}
{def $search=concat($view_parameters.firma,'*')}
{def $haendlerliste=fetch('content','list',
hash('parent_node_id',$node.node_id,
'sort_by',array('name',true),
'attribute_filter', array( array( 'user/firma', 'like', $search ) ),
'class_filter_type', 'include',
'class_filter_array', array('user')
)
)
}
{* Suche PLZ *}
{def $search=concat($view_parameters.plz,'*')}
{def $haendlerliste=fetch('content','list',
hash('parent_node_id',$node.node_id,
'sort_by',array('name',true),
'attribute_filter', array( array( 'user/plz', 'like', $search ) ),
'class_filter_type', 'include',
'class_filter_array', array('user')
)
)
}
I already spend too much time on this and wasn't able to get it working... Has anybody a hint for me?
Mit freundlichen Grüßen
Best regards
Norman Leutner
____________________________________________________________
eZ Publish Platinum Partner - http://www.all2e.com
http://ez.no/partners/worldwide_partners/all2e_gmbh
|