Using "fetch by owner"

Using "fetch by owner"

Friday 14 October 2005 9:54:21 pm - 2 replies

Author Message

Mazen Alsibai

Sunday 16 October 2005 3:05:47 am

Hi:
you have to fetch the current user like this:
{let current_user=fetch('user','current_user')}
<h1>User articles</h1>

{* Grab some of the content of the node that is being viewed. *}
{let children=fetch( content, list, hash( parent_node_id, $node.node_id,
attribute_filter,
array( array( 'owner', '=', $current_user.contentobject_id ) )) )}

{* LOOP: For each child of the node... *}
{section name=Child loop=$children}

{* Display the content of the child using a line-view template. *}
{node_view_gui view=line content_node=$Child:item}

<hr>

{* End of loop. *}
{/section}

{* End of namespace. *}
{/let}
{/let}{*fetch user*}

Steph A

Sunday 16 October 2005 10:32:45 pm

Of course... that worked ;)

Thank you very much!

You must be logged in to post messages in this topic!

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