fetch( 'user', 'current_user' )
An ezuser object.
This function fetches the user object for the user that is currently logged in. If no user is logged in, the anonymous user will be returned. In both cases, the function will return an ezuser object.
{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 />
Outputs miscellaneous information about the user that is currently logged in.
Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2013 eZ Systems AS (except where otherwise noted). All rights reserved.