How to omit sfTxtLable at Login Widget ?
Hi,
I'm new in Sitefinity, and now i'm using Login Widget on my page.
By the request, I don't want sfTxtLable shows at the widget.
And the addition the text "user name" needs to appear inside the the sfTxt (maybe by using html placeholder attribute).
I think i needs to edit the source code of Login Widget, but I don't know how to do this.
Thanks for helping..
Regards,
Eddy
Hello,
Please check this KB article for more details on how to change the default template of the Login widget:
http://www.sitefinity.com/developer-network/knowledge-base/details/change-the-default-template-of-the-frontend-login-widget
Regards,
Sabrie Nedzhip
Telerik
Hello Sabrie,
Thanks for the respons, i'll try it.
Regards,
Eddy
Hi Sabrie,
I have succesfuly created my own login widget based on standard template, when i checked the template is seems there is no the lable that i look for, i think its generated in sfFields:TextField or any asp net control, so i still cannot omit sfTxtLable.
What the next step that i must to do?
Regards,
Eddy
here is the snipped:
<%@ Control Language="C#" %>
<%@ Register Assembly="Telerik.Sitefinity" Namespace="Telerik.Sitefinity.Web.UI" TagPrefix="sitefinity" %>
<%@ Register Assembly="Telerik.Sitefinity" Namespace="Telerik.Sitefinity.Web.UI.Fields" TagPrefix="sfFields" %>
<sfFields:FormManager id="formManager" runat="server" />
<fieldset id="sfLoginWidgetWrp">
<asp:Panel ID="loginWidgetPanel" runat="server">
<ol class="sfLoginFieldsWrp">
<sfFields:TextField ID="UserName" AccessKey="u" runat="server" DisplayMode="Write" WrapperTag="li">
<ValidatorDefinition Required="true" MessageCssClass="sfError" RequiredViolationMessage="<%$ Resources:Labels, UsernameCannotBeEmpty %>"/>
</sfFields:TextField>
<sfFields:TextField ID="Password" IsPasswordMode="true" AccessKey="p" runat="server" DisplayMode="Write" WrapperTag="li">
<ValidatorDefinition Required="true" MessageCssClass="sfError" RequiredViolationMessage="<%$ Resources:Labels, PasswordCannotBeEmpty %>"/>
</sfFields:TextField>
...