how to: fetching 'additional' user class attributes ?

Author Message

Alessandro Cipriani

Thursday 01 April 2004 6:04:11 am

hi all
i've customized my user class by adding some attribute like:
-domain
-second e-mail

i can fetch the standard attribute (name, email, login) as follows:

	{let user=fetch( 'user', 'current_user' )}
		*User: {$user.contentobject.name}<br />
		*Email: {$user.email}<br />
		*Login: {$user.login}<br />
		{/let}

how can i fetch the attribute i've added?
how can i fetch, for example, only the last name of my user?

best regards
alessandro

Hugo Siles

Monday 05 April 2004 9:24:37 am

the way you can access to your attributes is:

*Domain: {attribute_view_gui attribute=$user.contentobject.data_map.domain}

hugo

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.