Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • mohammed 17 posts 88 karma points
    Feb 22, 2015 @ 14:00
    mohammed
    0

    Creating User Profile with custom data

    Hi,

    I am creating my first site in Umbraco. Now I have created a function for users to register on the website, either as an Employer or an Employee. There are quite few custom attributes that I want to add to the User object. I am looking for the best practice, would it be better to save those custom attributes in my own database or must I add them to umbraco? If I should add it to Umbraco, can someone give me a simple example of how I can do this please? 

    Thanks a lot for all the help

  • Dennis Aaen 4500 posts 18255 karma points admin hq c-trib
    Feb 22, 2015 @ 15:23
    Dennis Aaen
    0

    Hi Mohammed.

    By user profile with custom data, did you mean members that can login to your website, if you want to add new then you can go into the member section, and open up the folder called Member Types, then you can add some new custom fields to the member.

    If you mean that you want to extend the user in the user section with some extra information, then that is not possible at the moment as I know.

    Hope this helps,

    /Dennis

  • mohammed 17 posts 88 karma points
    Feb 22, 2015 @ 15:37
    mohammed
    0

    Hi Dennis,

    Thanks for your reply. 

    Members is exactly what I need. Perfect. Only thing is, for any custom datatypes that I create for user profiles to be based on, like user skills, can I pull the data from umbraco to populate the list on my registration page ?

     

    Thanks

  • Dennis Aaen 4500 posts 18255 karma points admin hq c-trib
    Feb 22, 2015 @ 15:54
    Dennis Aaen
    100

    Hi Mohammed,

    Perhaps you need to use the use the MemberService to get the custom properties out. You can find the member service documentation here: https://our.umbraco.org/documentation/Reference/Management-v6/Services/MemberService

    On Umbraco TV, there is a chapter about working with members, and Member type properties, but to see this video you need to subscribe to Umbraco TV. There a some different plans, depending on how many people you need to be able to login. You can see the plans here: http://umbraco.tv/plans-signup/

    And here is a post about the same topic https://our.umbraco.org/forum/umbraco-7/using-umbraco-7/52706-U7-adding-custom-member-properties-to-the-ProfileModel

    Hope this helps,

    /Dennis

  • mohammed 17 posts 88 karma points
    Feb 22, 2015 @ 16:46
    mohammed
    0

    Perfect thanks Dennis

Please Sign in or register to post replies

Write your reply to:

Draft