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   2745 Views

Avatar
mimamo

Community Member, 22 Posts

6 February 2013 at 11:04pm

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
copernican

Community Member, 189 Posts

7 February 2013 at 1:14am

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

Community Member, 22 Posts

12 February 2013 at 10:33pm

Edited: 12/02/2013 10:47pm

thank you,

i'll give it a try :)

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

Avatar
opalfroot

Community Member, 1 Post

2 February 2014 at 10:28am

To set the template try something like this

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