Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Admin Login form not using Page template

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: 4555 Views
  • toddm
    Avatar
    Community Member
    15 Posts

    Admin Login form not using Page template Link to this post

    Hi,
    Due to design of site, I'd like to avoid using Page.ss template for the admin login. Is this possible?

    In Security.php, I see:

          // custom processing
          if(SSViewer::hasTemplate("Security_login")) {
             return $customisedController->renderWith(array("Security_login", "Page"));
          } else {
             return $customisedController->renderWith("Page");
          }

    Does this mean it has to be the Page template?

    Sorry if I'm missing something obvious.

    Todd

  • banal
    Avatar
    Community Member
    901 Posts

    Re: Admin Login form not using Page template Link to this post

    You can create a template named Security_login.ss. It will be used as template then. If it doesn't exist, Page.ss will be used.
    Make sure you enter the $Form placeholder in the template, otherwise your login form won't be shown.

    4555 Views
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.