I'm running a V7 instance of Umbraco and I need to create a page where user can register.
When they register I need to create them as a member (Custom member type which has loads of custom properties that I need to set) in Umbraco, allow them to select one of a number of Member Groups that they wish to join and then log them into my site.
I can't seem to find any documentation for V7 could someone point me in the right direction please?
If you create a partial view in the settings section or a partial view macro in the developer section then Umbraco comes with some pre-code snippets here is a login form or a register member form and so on.
I have created a screenshot so you can see what I mean.
Create Member Programmically
Hi all,
I'm running a V7 instance of Umbraco and I need to create a page where user can register.
When they register I need to create them as a member (Custom member type which has loads of custom properties that I need to set) in Umbraco, allow them to select one of a number of Member Groups that they wish to join and then log them into my site.
I can't seem to find any documentation for V7 could someone point me in the right direction please?
Thanks, Craig
Hi Craig,
For documentation on how to create a member programmatically, try to see the member services documentation.
https://our.umbraco.org/DOCUMENTATION/Reference/Management-v6/Services/MemberService
https://our.umbraco.org/DOCUMENTATION/Reference/Management-v6/Services/MemberTypeService
https://our.umbraco.org/DOCUMENTATION/Reference/Management-v6/Services/MemberGroupService
For creating a page where user can register, try to see the Razor pre-code snippet called Register Member.
Hope this helps,
/Dennis
Cheers Dennis,
I couldn't find that anywhere (I think that certain people on here have magic powers or something!)
I'm not sure what you mean by the Razor pre-code snippet though?
thanks, Craig
Hi Craig,
If you create a partial view in the settings section or a partial view macro in the developer section then Umbraco comes with some pre-code snippets here is a login form or a register member form and so on.
I have created a screenshot so you can see what I mean.
Hope this helps,
/Dennis
Ah see what you mean.
Nice work cheers matey.
is working on a reply...