Determining if User is Logged In

A forum for Bolt related questions / issues

Determining if User is Logged In

Postby mdvaldosta » Thu Jan 30, 2014 10:06 pm

I'm trying to show different content depending on whether a user is logged in or not (things like a login/logout link, etc). With some trial and error I came up with {% if is defined %}, but I was wondering if there is a baked-in twig function for that? Or other useful front-end functions that might not be documented (like login or logout links)?

Some feedback from a new user: I'm having trouble figuring out what I can/can't do in the templates. Since we're forced to use Twig (I understand via Reddit why you do this), I can't dig through the classes very easily to figure out methods to use; it adds a layer that makes it extremely time consuming to figure out how to properly do things. The documentation is pretty to look at, but seems like more of an overview than an API/guide.
Posts: 3
Joined: Thu Jan 30, 2014 2:37 pm

Re: Determining if User is Logged In

Postby streeff » Tue Feb 04, 2014 9:43 pm

Answer to you first question: I had a similar request. If my information is correct, this might be in the works for a next version of Bolt. Don't know about timing, though.

If you have other specific specific questions, feel free to post them.
Evert Albers, Streeff - web // branding // information design - Amersfoort & Amsterdam, NL
User avatar
Posts: 146
Joined: Sat Jul 25, 2009 9:28 pm
Location: Amersfoort, NL

Return to Bolt Discussion

Who is online

Users browsing this forum: No registered users and 2 guests