custom user attribute

Permalink
Please, can anyone help me to create a custom user attribute.
I have found this page in documents but it does not go into code detail.
https://documentation.concrete5.org/editors/dashboard/users-and-grou...

It shows adding a 'handle' but there is no info as to what these 'handles' are?

What I'm aiming for is to show user login dates on the user page so I can see when users have logged in, rather than just the amount of times.

deanhawthornthwaite
View Replies:
jakobfuchs replied on at Permalink Reply
jakobfuchs
Handles are used behind the scenes and when you need to access an attribute in your code.

The handle needs to be lowercase and words need to be separated by underscores.

So if your custom attribute is named "My Custom User Attribute" you could use a handle like "my_custom_user_attribute".
deanhawthornthwaite replied on at Permalink Reply
deanhawthornthwaite
thanks for all replies!
hutman replied on at Permalink Reply
hutman
Adding an attribute isn't going to track when a user has logged in, that would take quite a bit more code.
deanhawthornthwaite replied on at Permalink Reply
deanhawthornthwaite
thanks for the info.
c5dragon replied on at Permalink Reply
c5dragon
deanhawthornthwaite replied on at Permalink Reply
deanhawthornthwaite
Thanks for your reply, but the page you linked to is all code and doesn't make any sense to me sadly.