Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Form Questions

Custom Login SS3


Reply

4 Posts   2598 Views

Avatar
mimamo

6 February 2013 at 11:04pm Community Member, 22 Posts

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
Avatar
IOTI

7 February 2013 at 1:14am Community Member, 189 Posts

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: [url]http://tamethebackbutton.blogspot.ca/2009/09/customize-your-own-silverstripe-login.html[/url]

Avatar
mimamo

12 February 2013 at 10:33pm (Last edited: 12 February 2013 10:47pm), Community Member, 22 Posts

thank you,

i'll give it a try :)

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

Avatar
opalfroot

2 February 2014 at 10:28am Community Member, 1 Post

To set the template try something like this

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