Thursday 22 September 2005 9:01:22 am
I couldn't sort using reverse_object fetch so I decided to try a list fetch with an attribute filter on the object relation attribute. I tried the following but it is returning all values not just the myclass instances that hav a pointer to the object with an id of 66. Is this the correct way to use it when filtering with object relation. All the examples use strings and int.
{def $myobjects=fetch( 'content', 'list', hash( 'parent_node_id', 119 ),
'attribute_filter', array( array('myclass/apointer', '=' , 66) ) )
}
{foreach $myobjects as $myobject}
{$myobject.node_id} <br />
{/foreach}
|