How to fetch the article by the current $node->creator?

Author Message

Quynh Nguyen

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!

Quynh Nguyen

Sunday 01 March 2009 4:19:51 am

oh, there is no way with current ezpublish version?

any hint please?

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.