Forums / Setup & design / SOLVED You can ignore this post,
Daniel Guerrier
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}
Renaud Patrick
Friday 23 March 2007 3:39:44 am
Man, solved is good for you, but you could have posted your solution, it would have been useful...
Script start
Module start 'content'
Module end 'content'
Script end
Time used to render debug report: 0.0002 secs