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.

Widgets

Discuss SilverStripe Widgets.

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

login widget


Reply

5 Posts   3549 Views

Avatar
mc.stever

2 January 2009 at 4:43pm Community Member, 1 Post

Hi Folks
I'm new to SilverStripe and I am working on my first project.
I'm using 2.2.3.
How to I get the login widget to appear on the main page of my project? Or is there an alternative way to request login info from the user. I'm not using the blog module (yet).
TIA
Steve

Avatar
moloko_man

7 January 2009 at 4:55pm Community Member, 72 Posts

If you have your main page as a different page type, i.e. MainPage.ss, etc. then in MainPage.ss you can put $LoginForm just under the $Content
This will show a basic login form.

Avatar
ojalà

14 January 2009 at 9:16pm Community Member, 87 Posts

Hi!
I need use login form in Page.ss. After login I need enter in an other page 'Reserved page' (the type is Page.ss again).
After login how can redirect user to this page?thanks!

Avatar
jsdev

18 January 2009 at 11:32pm (Last edited: 18 January 2009 11:33pm), Community Member, 9 Posts

Hi,
if I use the widget in 2.2.3 RC2 on the blog page the login ddidn't work
I got
.../emmaus/Security/?executeForm=LoginForm ( The requested page couldn't be found. )

If I am loged in I see my login

Any Idea ?

Tanks

Avatar
BDD

4 March 2009 at 8:23pm Community Member, 5 Posts

file LoginWidget.ss

replace string number 7
<form action="emmaus/Security/?executeForm=LoginForm" method="post" enctype="application/x-www-form-urlencoded">
to string
<form action="Security/LoginForm" method="post" enctype="application/x-www-form-urlencoded">