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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Form Questions /

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

Custom Login SS3


Go to End


4 Posts   9245 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: http://tamethebackbutton.blogspot.ca/2009/09/customize-your-own-silverstripe-login.html

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';
}