5102 Posts in 1520 Topics by 1116 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 2694 Views |
-
Login Form : Customizing css or html

14 October 2010 at 2:47am Last edited: 14 October 2010 2:47am
Hi,
Where is code for login form?
How ovveride it only for presentation/view side?Thank you
-
Re: Login Form : Customizing css or html

15 October 2010 at 8:57pm
The easiest way if you just want a custom page for it is to make a template called Security_login in your Layout folder. Security is the name of the controller that handles all the login stuff and login is the action name so that will at least give you your own template for it. The problem with modifying the login form is that it gets returned as a string to the template (I think) and not as a normal form so you can't use <% control %> to walk through it and create your own layout.
What you can do is to simply make your own login form and put it in the template file and layout that in whatever way you want, not sure if you lose out on some functionality though.
-
Re: Login Form : Customizing css or html

18 October 2010 at 11:03am
Thank's for your reply. So, I'll try Login group redirection form, or have you a login code example?
-
Re: Login Form : Customizing css or html

27 January 2011 at 11:03pm Last edited: 27 January 2011 11:04pm
Anyone had any success on this? I would like to change my login page template due to some javascript conflict from my main template, but I do not know how. And can I change the entire page or just Layout section?
-
Re: Login Form : Customizing css or html

5 September 2011 at 10:10pm Last edited: 5 September 2011 10:11pm
Adding a "Security_login.ss" Template File to your Layout Folder works like a charm!
Just add "$Form" (inside the Security_login.ss Template) where you want the Login Form to be rendered. -
Re: Login Form : Customizing css or html

3 December 2011 at 1:32am
Hello there,
Can we use our custom "Login Form" instead of using $Form in Security_login.ss.
Some thing like :
<form enctype="application/x-www-form-urlencoded" method="post" action="Security/LoginForm" id="MemberLoginForm_LoginForm">
<p style="display: none" class="message " id="MemberLoginForm_LoginForm_error"></p><input type="hidden" value="MemberAuthenticator" name="AuthenticationMethod" id="MemberLoginForm_LoginForm_AuthenticationMethod" class="hidden">
<div class="field text " id="Email">
<span class="field_label">Email</span><input type="text" value="" name="Email" id="MemberLoginForm_LoginForm_Email" class="text">
</div>
<div class="field password " id="Password">
<span class="field_label">Password</span><input type="password" value="" name="Password" id="MemberLoginForm_LoginForm_Password" class="text">
</div>
<p class="field checkbox " id="Remember">
<input type="checkbox" value="1" name="Remember" id="MemberLoginForm_LoginForm_Remember">
<label for="MemberLoginForm_LoginForm_Remember" class="right">Remember me next time?</label>
</p>
<div class="button">
<input type="submit" title="Log in" value="Log in" name="action_dologin" id="MemberLoginForm_LoginForm_action_dologin" class="action ">
<p id="ForgotPassword"><a href="Security/lostpassword">I've lost my password</a></p>
</div>
</form>Many Thanks.
-Kumar Sekhar
| 2694 Views | ||
|
Page:
1
|
Go to Top |


