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.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Login form on the home page


Go to End


3 Posts   1434 Views

Avatar
Bagzli

Community Member, 71 Posts

6 September 2015 at 6:44am

I don't know why this is so hard for me to figure out or find any information on, but I just want to add a login form to my home page. I have found a ton of information on how to create custom login forms, redirect to places based on group type, etc... but I cannot find any information on how to add the login for to lets say a home page.

I want my site to have a username/password box in menu and you can login by filling it out and clicking login. I don't want to force people to go to security/login just to log in.

Would anyone be able to point me in the right direction?

Avatar
stallain

Community Member, 68 Posts

9 September 2015 at 2:43pm

Hi, one short way to do so would be to put "$LoginForm" in your home page template (then use css to style the form)

Avatar
Bagzli

Community Member, 71 Posts

14 September 2015 at 4:36am

Thank you! That did the trick.