Forums / Developer / Show the Information of the current user
Rafael Andres Gonzalez Lopez
Tuesday 22 November 2005 5:41:14 am
In the development of an application I need to show certain information of the user who is connected nowadays to the user's interfaz of the CMS, in this area I manage to show the name of the current user and your mail, by means of following judgments:
{fetch('user','current_user').contentobject.name} {fetch('user','current_user').email}
I am trying to show the name of the user's account (login) of the current user by means of the following judgment:
{fetch('user','current_user').contentobject.user_account}
But this does not show me anything.
Good regards to all and thanks for any help...
Clemens T
Tuesday 22 November 2005 6:07:31 am
I believe this is what you 're looking for:
http://ez.no/community/forum/developer/main_node_id_of_the_user
so..
{def $user=fetch( 'user', 'current_user' )} User: {$user.contentobject.name} <br /> E-mail: {$user.email} <br /> Username: {$user.login} <br /> Group(s): {$user.groups|implode(', ')} <br /> {undef $user}
more:http://ez.no/doc/ez_publish/technical_manual/3_6/reference/modules/user/fetch_functions/current_user