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

Forums / Developing with Sitefinity / User Registration Information

User Registration Information

2 posts, 0 answered
  1. Ron
    Ron avatar
    33 posts
    Registered:
    04 Aug 2008
    31 Mar 2009
    Link to this post
    The general user registration seems to have only username, name,password and email. Is there more; or how do you add more fields like location etc.

    Thanks,
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    16 Jun 2017
    31 Mar 2009
    Link to this post
    Hi Ron,

    You can manage ~/Sitefinity/CmsAdmin/Users.aspx and add new fields under ManageProfile controls. Then, newly created fields should be registered in web.config file.

    Example:

           <asp:Literal ID="Literal6" runat="server" Text="<%$ Resources:UserDetails %>" /></h3>  
                                <fieldset class="userinfo set">  
                                    <cc1:ManageProfile ID="manageProfile" runat="server" Mode="Insert">  
                                        <InsertTemplate> 
                                            <ol class="setIn">  
                                                <li> 
                                                    <cc2:FieldLabel ID="lblFirstName" runat="server" Text="First name" TargetID="FirstName">  
                                                    </cc2:FieldLabel> 
                                                    <asp:TextBox ID="FirstName" runat="server"></asp:TextBox></li>  
                                                <li> 
                                                    <cc2:FieldLabel ID="lblLastName" runat="server" Text="Last name" TargetID="LastName">  
                                                    </cc2:FieldLabel> 
                                                    <asp:TextBox ID="LastName" runat="server"></asp:TextBox></li>  
                                                     <li><cc2:FieldLabel ID="lblocation" runat="server" Text="location" TargetID="location">  
                                                    </cc2:FieldLabel> 
                                                    <asp:TextBox ID="location" runat="server"></asp:TextBox></li>  
                                                
                                                      
                                            </ol> 
                                        </InsertTemplate> 
                                    </cc1:ManageProfile> 
                                </fieldset> 
                                <div class="bottom">  
                                    <div> 
                                        <!-- --> 
                                    </div> 
                                </div> 
                                 
     
     .....  
         ......  
                                <h3> 
                                    User Details</h3> 
                                <fieldset class="userinfo set">  
                                    <cc1:ManageProfile runat="server" ID="manageProfile" Mode="Edit">  
                                        <EditTemplate> 
                                            <ol class="setIn">  
                                                <li> 
                                                    <cc2:FieldLabel ID="lblFirstName" runat="server" Text="First name" TargetID="FirstName">  
                                                    </cc2:FieldLabel> 
                                                    <asp:TextBox ID="FirstName" runat="server"></asp:TextBox></li>  
                                                <li> 
                                                    <cc2:FieldLabel ID="lblLastName" runat="server" Text="Last name" TargetID="LastName">  
                                                    </cc2:FieldLabel> 
                                                    <asp:TextBox ID="LastName" runat="server"></asp:TextBox></li>  
                                                    <li> 
                                                    <li><cc2:FieldLabel ID="lblocation" runat="server" Text="location" TargetID="location">  
                                                    </cc2:FieldLabel> 
                                                    <asp:TextBox ID="location" runat="server"></asp:TextBox></li>  
                                                
                                            </ol> 
                                        </EditTemplate> 
                                    </cc1:ManageProfile> 
                                </fieldset>  

    web.config

        <profile defaultProvider="Sitefinity">  
                <providers> 
                    <clear /> 
                    <add name="Sitefinity" connectionStringName="DefaultConnection" applicationName="/" type="Telerik.DataAccess.AspnetProviders.TelerikProfileProvider, Telerik.DataAccess" /> 
                </providers> 
                <properties> 
                    <add name="FirstName" /> 
                    <add name="LastName" /> 
                    <add name="location" type="System.String"/>  
                </properties> 
            </profile> 


    Sincerely yours,
    Ivan Dimitrov
    the Telerik team

    Check out Telerik Trainer , the state of the art learning tool for Telerik products.
2 posts, 0 answered