+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / How to omit sfTxtLable at Login Widget ?

How to omit sfTxtLable at Login Widget ?

4 posts, 0 answered
  1. test
    test avatar
    4 posts
    Registered:
    24 Jun 2016
    29 Jun
    Link to this post

    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

  2. Sabrie Nedzhip
    Sabrie Nedzhip avatar
    534 posts
    Registered:
    08 Dec 2016
    04 Jul
    Link to this post
    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
     
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
  3. test
    test avatar
    4 posts
    Registered:
    24 Jun 2016
    15 Jul
    Link to this post

    Hello Sabrie,

    Thanks for the respons, i'll try it.

     

    Regards,
    Eddy

     

  4. test
    test avatar
    4 posts
    Registered:
    24 Jun 2016
    02 Aug
    Link to this post

    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>

                ...

     

     

     

4 posts, 0 answered