Copied to clipboard

Flag this post as spam?

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


  • Warren 30 posts 95 karma points
    Apr 29, 2015 @ 00:03
    Warren
    0

    Whats the new way to read and write custom umbraco member properties?

    Whats the new way to read and write custom umbraco member properties?

    I am using Umbraco Ver 6.2.2

    I have added additional fields like "middlename", etc in the umbraco backend to a member type and I want to be able to read and write to them in code.

    I was using the class umbraco.cms.businesslogic.member, but is deprecated.

    For Example (Old Way)
    umbracomember = Member.GetMemberFromLoginName("user")
    umbracomember.getProperty("middlename").Value = strName;

    But as mentioned, Member.GetMemberFromLoginName is obsolete. And on the save method it is taking along time to execute (Upto 15 seconds)

    Can anyone plesae point me to some documentation on how to achieve this using the new membership provider.

    Thanks

     

  • Dennis Aaen 4500 posts 18255 karma points admin hq c-trib
    Apr 29, 2015 @ 00:25
  • Warren 30 posts 95 karma points
    Apr 29, 2015 @ 00:51
    Warren
    0

    Thanks Dennis

    My google seraches were turning up nothing.

     

  • Warren 30 posts 95 karma points
    Apr 29, 2015 @ 01:07
    Warren
    0

    Hmmmm. I can't seem to find anything in the documentation relating to the updating umbraco member properties.

    I will playing around with the classess, to see if I can find anything.

  • Warren 30 posts 95 karma points
    Apr 29, 2015 @ 02:20
    Warren
    102

    I found this link useful. It has code samples for the Properties method.

    http://24days.in/umbraco/2014/dealing-with-members/

     

  • 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