This site has been archived and you can no longer log in or post new messages. For up-to-date community resources please visit ezplatform.com

eZ Community » Forums » Developer » Registered users
expandshrink

Registered users

Registered users

Saturday 12 February 2011 7:05:40 pm - 5 replies

Hi,

What function returns all registered users?

Thanks,

David

Saturday 12 February 2011 7:53:42 pm

{fetch( content, list, hash( 'parent_node_id', 4, class_filter_type, 'include', class_filter_array, array( 'user' )} should do it.

Saturday 12 February 2011 8:22:49 pm

It shows nothing, are you sure that is the node 4?

If I put this:

{def $users=fetch( 'content', 'list', hash( 'parent_node_id', 5))}
{foreach $users as $user}
{$user.name}
{/foreach}

It shows the user groups names.

Modified on Saturday 12 February 2011 8:23:26 pm by David Santiso

Saturday 12 February 2011 8:30:37 pm

{def $users=fetch( 'content', 'list', hash( 'parent_node_id', 5,class_filter_type, 'include', class_filter_array, array( 'user' ),'depth', 3))}
{foreach $users as $user}
{$user.name}
{/foreach}

You missed 'depth': http://doc.ez.no/eZ-Publish/Technical-manual/4.x/Reference/Modules/content/Fetch-functions/list

Modified on Saturday 12 February 2011 11:48:40 pm by Thiago Campos Viana

Sunday 13 February 2011 3:38:25 pm

My god, I'm ashamed. Note that I did this out of memory only, and don't write that much templates these days blunk.gif Emoticon

Good to see you guys are following up :p

Saturday 19 February 2011 5:32:23 pm

And how can I access the latest contributions made on the web?

And how can I access her login, email and other user account data?

Modified on Saturday 19 February 2011 5:58:32 pm by David Santiso

expandshrink

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

36 542 Users on board!

Forums menu

Proudly Developed with from