πŸš€Quick Start | SA5 User Accounts

How to Easily Add SA5's User Info & Advanced Routing Enhancements to Your Webflow Memberships Site

How to Add the Library

circle-exclamation

Add this script to the site wide custom code HEAD area of your site.

<!-- Sygnal Attributes 5 | User Accounts --> 
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/sygnaltech/[email protected]/dist/css/webflow-membership.css"> 
<script defer src="https://cdn.jsdelivr.net/gh/sygnaltech/[email protected]/dist/nocode/webflow-membership.js"></script>
<script>
window.sa5 = window.sa5 || [];
window.sa5.push(['getMembershipConfig', 
  (config) => {
    // Apply any configuration settings here
    // such as access groups 
    return config;
  }]);
</script>

Once you've added the library, both the User Info and the Advanced Log-In & Sign-Up Flow features are available to use.

Current User Info Quick Start

circle-check

User info works automatically behind the scenes, and gathers data when a User first logs in.

To access User Info, you can use the data-binding feature on an element, such as a form field. Add a custom attribute of wfu-bind with the DSDarrow-up-right you want to the element you want data-bound.

For example, this custom attribute setting on an INPUT element will data-bind the user's email;

wfu-bind = $user.email

circle-info

See SA5's full list of data source descriptors for User Infoarrow-up-right here.

If you want to use the user's info in custom code, use the callback optionarrow-up-right, and you get the full user objectarrow-up-right.

circle-exclamation

Log-In & Sign-Up Flow Quick Start

We use the same library above for this module.

However it requires configuration which is done through a configuration callback.

See here for the code to configure log-in & sign-up flowarrow-up-right.

Add the custom attributes for the features you need, described in each feature separately.

SA5 Library Developers

For SA5 library developers, use the extended syntax to support Sygnal Devmodearrow-up-right and Sygnal DevProxyarrow-up-right. These make it easier to develop and test code changes with Webflow sites.

Last updated

Was this helpful?