Tuesday 11 December 2007 1:13:10 am
You need to make sure you have the correct datatype, an object relation List returns an array of objects while an Object Relation Returns a single Object, not only make sure you have one object. You can make sure you have the correct datatype while editing your class in the administration interface->administration->class.
You should then be able to use the attribute_filters in the same way as for other types of attributes, other examples are shown on this page: http://ez.no/doc/ez_publish/technical_manual/3_9/reference/modules/content/fetch_functions/list
'attribute_filter', array( 'or',
array( 152, '=', 'abc' ),
array( 153, '=', '42' )
The php code I gave out, is indeed, to create a custom fetch function by using an operator with php code. Although I read yesterday that it was no longer possible to use the static version of subtree() in ez4: http://serwatka.net/index.php/en/blog/ez_publish_4_0_post_release_notes
|