Copied to clipboard

Flag this post as spam?

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


  • Craig O'Mahony 363 posts 917 karma points
    Jul 21, 2015 @ 14:00
    Craig O'Mahony
    0

    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

  • Dennis Aaen 4457 posts 17970 karma points admin hq c-trib
    Jul 21, 2015 @ 14:26
    Dennis Aaen
    0

    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

  • Craig O'Mahony 363 posts 917 karma points
    Jul 21, 2015 @ 14:33
    Craig O'Mahony
    0

    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

  • Dennis Aaen 4457 posts 17970 karma points admin hq c-trib
    Jul 21, 2015 @ 14:43
    Dennis Aaen
    0

    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.

    enter image description here

    Hope this helps,

    /Dennis

  • Craig O'Mahony 363 posts 917 karma points
    Jul 21, 2015 @ 14:52
    Craig O'Mahony
    0

    Ah see what you mean.

    Nice work cheers matey.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies