Custom LoginForm Template
Greetings,
Hello Daniel,
You have to use LayoutTemplatePath and create a new customized template, but the behavior you see is a bug in the control. The problem is that when you use an external template the container does not look for the controls inside the template and as a result the control thinks that there is not control of type IEditableTextControl in your template.I logged this issue for fixing. Your Telerik points have been updated.
Regards,
Ivan Dimitrov
the Telerik team
Has this been fixed? Because Sitefinity gave me a custom login template as a work around for the image url not working (the fields there to use but is not implimented). I've put the template in the layout path and now I'm getting this error...
C001: LayoutTemplate does not contain an IEditableTextControl with ID UserName for the username.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Web.HttpException: C001: LayoutTemplate does not contain an IEditableTextControl with ID UserName for the username.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[HttpException (0x80004005): C001: LayoutTemplate does not contain an IEditableTextControl with ID UserName for the username.]
System.Web.UI.WebControls.GenericContainer`1.FindControl(String id, Boolean required, String errorResourceKey) +1814387
System.Web.UI.WebControls.LoginContainer.get_UserNameTextBox() +9444423
System.Web.UI.WebControls.Login.get_UserNameInternal() +60
System.Web.UI.WebControls.Login.SetEditableChildProperties() +28
System.Web.UI.WebControls.Login.CreateChildControls() +194
Telerik.Sitefinity.Security.Web.UI.LoginForm.CreateChildControls() +89
System.Web.UI.Control.EnsureChildControls() +83
System.Web.UI.Control.FindControl(String id, Int32 pathOffset) +27
System.Web.UI.Control.FindControl(String id) +12
Telerik.Sitefinity.Security.Web.UI.LoginForm.get_LogoutButton() +65
Telerik.Sitefinity.Security.Web.UI.LoginForm.OnInit(EventArgs e) +291
System.Web.UI.Control.InitRecursive(Control namingContainer) +134
System.Web.UI.Control.InitRecursive(Control namingContainer) +290
System.Web.UI.Control.InitRecursive(Control namingContainer) +290
System.Web.UI.Control.InitRecursive(Control namingContainer) +290
System.Web.UI.Control.InitRecursive(Control namingContainer) +290
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +489