Share » Forums » Setup & design » Get Users (email) in eZUsers

Get Users (email) in eZUsers

Get Users (email) in eZUsers

Friday 16 March 2007 1:28:59 pm - 4 replies

Modified on Friday 16 March 2007 1:29:40 pm by Eder Silva

Author Message

Heath

Friday 16 March 2007 4:24:48 pm

Hello,

Have you considered doing this as an eZ publish module extension instead?
I could see how doing this via php could be simpler than within a template...

Brookins Consulting | http://brookinsconsulting.com/
Certified | http://auth.ez.no/certification/verify/380350
Solutions | http://projects.ez.no/users/community/brookins_consulting
eZpedia community documentation project | http://ezpedia.org

Xavier Dutoit

Saturday 17 March 2007 12:03:04 am

{$child|attribute(show,2)} will displays what's inside the object user and where is the email.

X+

http://www.sydesy.com

Bruce Morrison

Saturday 17 March 2007 12:18:51 am

Hi Eder

A couple of basics first. The fetch is return all the content objects of content class user under node 184.

The user content class contain an attribute called <i>user_account</i> which is a user_account datatype

You want to display the email address associated with the user_account attribute.

The following should work:

{def $list_user=fetch( content, tree, hash( parent_node_id, 184,
                                                   sort_by, array( name, true() ),
                                                   class_filter_type, include,
                                                   class_filter_array, array( 'user' ) ) ) }

<select name="name">
{foreach $list_user as $child}
<option value="{$child.object.data_map.user_account.content.email}">{$child.object.data_map.user_account.content.email}</option>
{/foreach}
</select>

See these links for more info:
http://ez.no/doc/ez_publish/technical_manual/3_8/reference/objects/ezuser
http://ez.no/doc/ez_publish/technical_manual/3_8/reference/datatypes/user_account

Cheers
Bruce

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish

Eder Silva

Monday 19 March 2007 8:07:49 am

Thanks for all !!

All the codes are perfect to me...

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

36 542 Users on board!

Forums menu