Copied to clipboard

Flag this post as spam?

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


  • acavuoto 7 posts 37 karma points
    Jul 30, 2014 @ 18:50
    acavuoto
    0

    Add custom fields to members

    Hello guys,

    I would like to add some fields in the umbraco member section. I am aware that umbaco uses the microsoft membership provider but, even if I searched a lot, I am not able to find an answer that actually works for my installation (umbraco 6.1.6).

    Ideally I would like just to add a new tab to the member and add few fields, like surname and address.

    Do you know how can I achieve this?

    Cheers

    Annio

  • Amir 75 posts 224 karma points
    Jul 30, 2014 @ 21:20
    Amir
    1

    Hi Annio,

     

    You need to go to Umbraco's member section and select your member type and there from you can add Tab and Property just like a normal DocumentType.

    In order to get the value of that property you can do something like below:

    var member = Member.GetMemberFromLoginNameAndPassword(userName, password);
    var x = member.getProperty("YOUR PROPERTY NAME ALIAS").Value;
  • acavuoto 7 posts 37 karma points
    Jul 31, 2014 @ 11:45
    acavuoto
    0

    Oh, thank you very much! Very straightforward :)

Please Sign in or register to post replies

Write your reply to:

Draft