Home > Theme Design > Variable (tag) reference > User attributes
login

© Metadot Corporation

User object represent current page visitor. If the visitor is logged in, then you could access his attributes. The object is accessible both for text assets and layouts.
User attributes:

first_name  

returns the first name of the current user

Example usage:

{{user.first_name}} 

Html output:

John 

middle_name  

returns the middle name of the current user

Example usage:

{{user.middle_name}}

last_name  

returns the last name of the current user

Example usage:

{{user.last_name}} 

display_name  

returns the display name of the current user

Example usage:

{{user.display_name}}

email  

returns the email of the current user

Example usage:

{{user.email}} 

Html output:

john.smith@some-corporation.com 

password  

returns the password for the user (can be used only in Registration approval email template)

Example usage:

{{user.password}} 

Html output:

my-secret-password

work_phone  

returns the work phone of the current user

Example usage:

{{user.work_phone}} 

cell_phone  

returns the cell phone of the current user

Example usage:

{{user.cell_phone}} 

home_phone  

returns the home phone of the current user

Example usage:

{{user.home_phone}} 

fax_phone  

returns the fax phone of the current user

Example usage:

{{user.fax_phone}} 

notes  

returns the user notes of the current user

Example usage:

{{user.notes}} 

role  

returns the role of the current user

Example usage:

{{user.role}}