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?
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.
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 ?
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/
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
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
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
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
Perfect thanks Dennis
is working on a reply...