More in this section
Forums / Developing with Sitefinity / How to omit sfTxtLable at Login Widget ?

How to omit sfTxtLable at Login Widget ?

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
4 posts, 0 answered
  1. test
    test avatar
    4 posts
    Registered:
    24 Jun 2016
    29 Jun 2016
    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:
    17 Aug 2017
    04 Jul 2016
    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 2016
    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 2016
    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