eZ Community » Forums » Extensions » Get user posts of the forum,,,
expandshrink

Get user posts of the forum,,,

Get user posts of the forum,,,

Friday 28 November 2008 1:02:51 pm - 1 reply

I want to get all topics of the forum that submitted by the logged user. Anyone know how to do this. Please help me!

Friday 28 November 2008 5:37:14 pm

Hello,

You can try it like this:

{def $cuser=fetch(user, current_user)}
{def $topic_list=fetch('content','list',hash( 
     parent_node_id, $forum_node_id,
     class_filter_type,include,
     class_filter_array,array('forum_topic'),
     attribute_filter, array( array('owner','=',$cuser.contentobject.id) )
) )}

For more info look here:
http://ez.no/doc/ez_publish/techn...modules/content/fetch_functions/list

expandshrink

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

36 542 Users on board!

Forums menu

Proudly Developed with from