Jump to:

17452 Posts in 4473 Topics by 1971 members


SilverStripe Forums » Archive » Site wide login / logout area

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Page: 1
Go to End
Author Topic: 1281 Views
  • Dana
    Community Member
    1 Post

    Site wide login / logout area Link to this post

    Hi All,

    I'm brand new to the CMS and am testing functionality and starting some development with it. So far it seems great. One question though. I want to have a site wide login form at the top right corner of my site. This would turn to "logout" when the user has logged in. What is the best way to accomplish this?


  • Liam
    Community Member
    470 Posts

    Re: Site wide login / logout area Link to this post

    Use the variable $LoginForm in your template.

    This will redirect users to the admin area.

    If you need to customize the form further beyond CSS, there is a login form widget which just has the html code that is outputted from $LoginForm (or you could copy it yourself from the output). You can customize that and change the hidden form variable which redirects to the admin page. Can be anything you want.

Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.