Saturday 28 February 2009 1:42:42 am
I read this document: http://ez.no/doc/ez_publish/technical_manual/4_0/reference/modules/content/fetch_functions/list And did a search in forum... but there is no example for fetch the content by the current $node->creator. Because the current creator is object. It is not "owner" attribute in above document, so I can not use the sample code from Example 17:
{def $nodes=fetch( 'content', 'list',
hash( 'parent_node_id', 42,
'attribute_filter', array( 'and',
array( 'owner',
'=',
$current_user.contentobject_id ) ,
array( 'class_identifier', '=', 'folder' ) ) ,
'depth', 3 ) )}
{foreach $nodes as $node}
{$node.name|wash}<br />
{/foreach}
{undef $nodes}
Is there any solution? Thanks!
|