Forums / Developer / Registered users

Registered users

Author Message

David Santiso

Saturday 12 February 2011 10:05:40 am

Hi,

What function returns all registered users?

Thanks,

David

Bertrand Dunogier

Saturday 12 February 2011 10:53:42 am

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

Bertrand Dunogier
eZ Systems Engineering, Lyon
http://twitter.com/bdunogier
http://gplus.to/BertrandDunogier

David Santiso

Saturday 12 February 2011 11:22:49 am

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.

Thiago Campos Viana

Saturday 12 February 2011 11:30:37 am

{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

eZ Publish Certified Developer: http://auth.ez.no/certification/verify/376924

Twitter: http://twitter.com/tcv_br

Bertrand Dunogier

Sunday 13 February 2011 6:38:25 am

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

Good to see you guys are following up :p

Bertrand Dunogier
eZ Systems Engineering, Lyon
http://twitter.com/bdunogier
http://gplus.to/BertrandDunogier

David Santiso

Saturday 19 February 2011 8:32:23 am

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?