User Info Data Source
Data-binding Current User
Webflow has announced the deprecation of Webflow User Accounts. This data source will continue working until it is fully deprecated.
This functionality is available when you are using SA5's User Info library.
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
Custom user fields can also be accessed, under $user.data.your-field-name
.
You can use this in element data-binding, with the
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 }}
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
name
The user's name, as they've specified in account info
email
The user's email address
name_short
A pseudonym, composed from the email's name@
portion
name_short_clean
The name_short pseudonym, without the @
name_short_tcase
The name_short_clean
pseudonym, title cased
user_id_alt
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.
FIELD-NAME
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
Was this helpful?