More in this section

Forums / Developing with Sitefinity / Adding more controls while creating Users

Adding more controls while creating Users

4 posts, 2 answered
  1. karnan sekar
    karnan sekar avatar
    80 posts
    Registered:
    07 Jul 2009
    30 Apr 2010
    Link to this post
    Hi

    In Administration >Users > we need to add more fields like check boxes, drop downs and text area controls to add more information about membership users.  Please suggest us how to add meta fields and controls.

    Thanks,
    Karnan

  2. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    30 Apr 2010
    Link to this post
    Hello karnan sekar,

    You can take a look at the following webinar: Sitefinity Membership & Role Providers. There in the first part Gabe explains how to extend user's profiles and add new fields in the back end.

    Greetings,
    Radoslav Georgiev
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
    Answered
  3. George
    George  avatar
    204 posts
    Registered:
    05 Sep 2006
    30 Apr 2010
    Link to this post
    Hi there,

    first you need to add the meta data fields in the web.config in the profile properties section as follows then modify the templates for the user management located at ~/Sitefinity/Admin/CmsAdmin/Users.aspx, you will find the insert template, the list template, the edit template and you can add your controls there and assign them to the profile properties elements.

    Note that you need to be careful with the ID of the controls to match the properties names.

    For more info you can watch this webinar here it will help you do exactly what you want.

    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="Position"/>
            <add name="Photo_Hidden"/>
            <add name="Photo" defaultValue="~/Sitefinity/Common/Images/defaultavatar.gif"/>
            <group name="InstantMessenger">
                <add name="IM_Type"/>
                <add name="IM_Value"/>
            </group>
            <group name="Phone">
                <add name="Value"/>
                <add name="Type"/>
            </group>
            <add name="Country" type="System.Int32"/>
            <add name="BirthYear" type="System.Int32"/>
            <add name="Gender"/>
            <add name="Nationality" type="System.Int32"/>
        </properties>



    Answered
  4. karnan sekar
    karnan sekar avatar
    80 posts
    Registered:
    07 Jul 2009
    30 Apr 2010
    Link to this post
    Thanks a lot Radoslav Georgiev  :)

    Karnan

Register for webinar
4 posts, 2 answered