David Santiso
|
Friday 17 June 2011 12:59:31 am
Hi, How can I fetch content list filtering by owner content? I've copied this for documentation:
{def $u_current=fetch( 'user', 'current_user' )}
{def $a_content=fetch( 'content', 'list',
hash( 'parent_node_id', array( 165, 167 ),
'attribute_filter', array( 'owner', '=', $u_current.contentobject_id ),
'sort_by', array( 'modified', false() ),
'ignore_visibility', false(),
'limit', 5 ) )} ... but it displays nothing. If I don't put the "attribute_filter", it displays the content of all users. Thanks, David
|
Thiago Campos Viana
|
Saturday 18 June 2011 7:39:38 pm
Try with an array inside another array, like in (you also could use 'and'/'or'):
...
'attribute_filter', array(array( 'owner', '=', $u_current.contentobject_id)),
...
eZ Publish Certified Developer: http://auth.ez.no/certification/verify/376924
Twitter: http://twitter.com/tcv_br
|