Forums / Setup & design / SOLVED You can ignore this post,

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

SOLVED You can ignore this post,

Author Message

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...