Saturday 21 November 2009 10:15:15 am
Hi, I've problem with searching for objects using attribute_filter attribute in fetch list function. I have following code in my template:
{def $list=fetch(content,list,hash(
parent_node_id, 2,
depth, 8,
class_filter_type, 'include',
class_filter_array, array('item'),
attribute_filter, array( array('item/artist', '=', '60') )
))}
{$list|attribute(show,1)} where 'artist' is name of attribute of Object Relations type and 60 is ID of related object I'm looking for. The thing it that it doesn't matter what ID I put there, because even if I try '!=' above code doesn't return any results. If I change my Object Relations attribute to Object Relation - filtering seems to work fine. Is it limitation of Object Relations attribute? Is there any way to workaround it or extend Object Relations type? Any hints are appreciated. Michal
|