Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » How to define a special template for the login-page

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: 1786 Views
  • mundgold
    Avatar
    Community Member
    19 Posts

    How to define a special template for the login-page Link to this post

    Hello there,

    how can I define a special template for the login (admin - Page)
    or perhaps is there a condition like <% if loginpage %> that I could use in the default page.ss

    I know that I can get a Login-Form in my Template with $LoginForm but in that case I would have to create a special page in the Backend with the bahaviour loginpage and i would have to create the controllers and models etc.

    I need the $Form of my default Template because I use "UserDefinedForm" so I search for a possibility to control my template in case the admin-Page is requested.

    Thanks Roland

  • mundgold
    Avatar
    Community Member
    19 Posts

    Re: How to define a special template for the login-page Link to this post

    Hello there - happy new year!

    I solved my problem in an unconventional way:

    <% if URLSegment = Security %>

    perhaps there are much smarter ways - but it works for me now.

    Cheers Roland

  • toddm
    Avatar
    Community Member
    15 Posts

    Re: How to define a special template for the login-page Link to this post

    This works, but is there a way to specify which .ss page to use rather than Page.ss?

    Todd

    1786 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.