Forums / Developer / Fetch content with attribute filter of object relation datatype

Fetch content with attribute filter of object relation datatype

Author Message

David Santiso

Saturday 02 April 2011 7:22:34 am

Hi,

I'm trying to fetch content with attribute filter name. The problem is that the attribute is a object relation datatype. This is my code:

{def $objects=fetch( 'content', 'list',
                     hash( 'parent_node_id', array( 63, 117 ),
                           'sort_by', array( 'published', false() ),
                           'attribute_filter', array( array( 'attribute_example', 'like', '*exemple*' ) ) ) )}

With other datatype it works. For example with text line.

How can I do it?

Thanks,

David