I remember doing this a while ago with something along the lines of:

<?php if ($account->uid > 0) : ?>Logged in.<?php endif; ?>

but that doesn't seem to work inside of contemplate. Is it possible to use variables of this sort in contemplate?

Comments

jrglasgow’s picture

you make the $user variable global and check that

global $user;
if ($user->uid) {
  //if the user is not logged in the uid will be 0 which is considered  FALSE
  //put something here to display when a user is logged in
}