Using Filters to access and format data: modUser

Using Filters to access and format data: modUser

MODX Revolution Filters are extremely powerful, effective tools used to expedite the formatting and presentation of data from any MODX Element.

Posted on March 09, 2012 at 19:34:00
Tags: Filters, modUser
Words: 232
Level: Beginner
Dependencies: None

Built in User Filters

User Internal Key: [[!+modx.user.id:userinfo=`internalKey`]]
User name: [[!+modx.user.id:userinfo=`username`]]
Full Name: [[!+modx.user.id:userinfo=`fullname`]]
E-mail: [[!+modx.user.id:userinfo=`email`]]
Phone: [[!+modx.user.id:userinfo=`phone`]]
Mobile Phone: [[!+modx.user.id:userinfo=`mobilephone`]]
Fax: [[!+modx.user.id:userinfo=`fax`]]
Date of birth: [[!+modx.user.id:userinfo=`dob`:date=`%Y-%m-%d`]]
Gender: [[!+modx.user.id:userinfo=`gender`:select=`0=Unknown&1=Male&2=Female`]]
Country: [[+modx.user.id:userinfo=`country`]]
State: [[+modx.user.id:userinfo=`state`]]
Zip Code: [[+modx.user.id:userinfo=`zip`]]
Comment: [[+modx.user.id:userinfo=`comment`]]
Password: [[+modx.user.id:userinfo=`password`]]
Cache Password: [[+modx.user.id:userinfo=`cachepwd`]]
Last Login: [[+modx.user.id:userinfo=`lastlogin`:date=`%Y-%m-%d`]]
The Login:[[+modx.user.id:userinfo=`thislogin`:date=`%Y-%m-%d`]]
Number of Logins: [[+modx.user.id:userinfo=`logincount`]]

Filter Output

User Internal Key:
User name:
Full Name:
E-mail:
Phone:
Mobile Phone:
Fax:
Date of birth:
Gender:
Country:
State:
Zip Code:
Comment:
Password:
Cache Password:
Last Login:
The Login:
Number of Logins:

Added to the MODX Revolution Official Documentation
MODX:
Website development platform combining security, power, and innovation.