Hide login after logged in
Permalink Browser Info Environment
I am trying to hard code the login block so I don't have to manually add it to every page
So I have successfully enabled register link and return to same page, but the same isn't working for when logged in it shows 'signed in as user'
I assume I'm on the right lines
Help!
Ta
So I have successfully enabled register link and return to same page, but the same isn't working for when logged in it shows 'signed in as user'
$loginBT = BlockType::getByHandle('login'); $loginBT->controller->showRegisterLink = 'true'; $loginBT->controller->returnToSamePage = 'true'; $loginBT->controller->hideFormUponLogin = 'true';
I assume I'm on the right lines
Help!
Ta
Type: | Discussion |
---|---|
Status: | Archived |
So just
and you should be all set.