Jump to:

2011 Posts in 1436 Topics by 620 members

Form Questions

SilverStripe Forums » Form Questions » Custom Login SS3

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

Page: 1
Go to End
Author Topic: 2465 Views
  • mimamo
    Avatar
    Community Member
    22 Posts

    Custom Login SS3 Link to this post

    Hi,

    I'm trying to create a custom login to include on my homepage.

    At first i used $Loginform and the Form.ss form framework/templates/Includes but i want to know if there's a different way or a module for SS3.

    I want to customize it, that it looks like the attachment.

    Can anyone help me?

    Benni

    Attached Files
  • IOTI
    Avatar
    Community Member
    189 Posts

    Re: Custom Login SS3 Link to this post

    You could extend the LoginForm class and create your own LoginForm anyway you like. You could base it off of the MemberLoginForm.php class.

    Check out this article here which may help: http://tamethebackbutton.blogspot.ca/2009/09/customize-your-own-silverstripe-login.html

  • mimamo
    Avatar
    Community Member
    22 Posts

    Re: Custom Login SS3 Link to this post

    thank you,

    i'll give it a try

    EDIT:
    How can I get the Login Form to the Template? :/

  • opalfroot
    Avatar
    Community Member
    1 Post

    Re: Custom Login SS3 Link to this post

    To set the template try something like this

    class SupportLoginForm extends MemberLoginForm{
       protected $template = 'Forms/SupportLoginForm';
    }

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