Forums / Setup & design / getting the login name of a user instead of the real name
Pascal Specht
Tuesday 20 November 2007 10:02:56 am
Hi friends,
I'd like to retrieve the account login name of a user instead of his/her real name. I managed it to retrieve the user object, but then I'm stuck I don't know how to get to the login attribute, which doesn't seem to exist in this class...
Any ideas how to retrieve the login name from there?
{def $user=fetch('content', 'object', hash( 'object_id', $owner.id ) )}
Thanks in advance!
</pascal>
André R.
Tuesday 20 November 2007 10:30:31 am
Have you tried looking in the data_map ???
$user.data_map.user_account.content.login
eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription @: http://twitter.com/andrerom
Wednesday 21 November 2007 12:32:44 am
Hi André,
Works like a charm! Thanks a lot! I had looked into the data_map through attribute('show') but was missing the .content. in my formula.
Thanks a lot,</Pascal>