Liquid

Using the current_user object with Secure Zones

2min
this article for developers helps you get more out of secure zones, as you can output basic information about the current user dynamically prerequisites you have installed the secure zones module you have added a user sign up form a user has logged in the current user object when a user signs up or logs into your site, we store basic information about that user you can use this to make the page respond uniquely to that user outputting the following liquid on the page shows the full range of fields available {{context current user | json}} you can traverse through the fields in the object and output them with dot notation e g {{context current user first name}} this will output the current user's first name, so you can say hello you could also use an if statement to run logic using this e g if i want to say hello to all users with a siteglide email address {% if context current user email contains "@siteglide com" %} hello siteglider! {% endif %}