User Info Data Source
Data-binding Current User
User Info
If you are using Webflow User Accounts and SA5's User Info library, then SA5 constructs a User Info object whenever a user is currently logged in.
The details of that object can be data-bound.
$user.name
$user.email
Custom user fields can also be accessed, under $user.data.your-field-name
.
You can use this in element data-binding, with the
{{ $user.data.your-field-name }}
Shortcut. @
can be used as a shortcut in place of $user.
, for example @name
is equivalent to $user.name
Examples
wfu-bind = $user.data.link-field
{{ $user.data.link-field }}
This functionality is available when you are using SA5's User Info library.
If you are using Webflow Memberships and SA5's User Info library, then SA5 constructs a User Info object whenever a user is logged in.
The details of that object can be data-bound. e.g.;
$user.name
- Gets the current user's name@email
- Gets the current user's email
They can be used with wfu-bind
, or within template macros within wfu-bind-content
, e.g.
Available DSD's
Prefix any of these with $user.
They can be used with wfu-bind, or within templates wfu-bind-content.
Shortcut. @
can be used as a shortcut in place of $user.
, for example @name
is equivalent to $user.name
$user. | |
---|---|
| The user's name, as they've specified in account info |
| The user's email address |
| A pseudonym, composed from the email's |
| The name_short pseudonym, without the |
| The |
| A unique ID for the User. This is not the Webflow Membership's ID, and cannot be used with Webflow's API - but is equally usable for 3rd party system integration and tracking. |
| data contains a map of the user's custom fields. Specify the field you want in place of FIELD-NAME. These are named using Webflow's internal data field names, which is based on your individual user field slugs. |
Demo
Last updated