I need to programatically update the value of a member picker, but the only way I've found to recover the node id of a member is marked as obsolete (umbraco 4.11.x)
Any idea? Thank you
var user = umbraco.cms.businesslogic.member.Member.GetMemberByName(username, false)[0].Id;
I believe if that works you are OK to go with it. It certainly wouldn't be removed in any 4.X upgrade you do even if marked as obsolete, and am fairly sure for version 6 there's not been a new members API, hence the method would still be working with that version too.
Membership: Member node id
I'm wondering how to get member node id.
I need to programatically update the value of a member picker, but the only way I've found to recover the node id of a member is marked as obsolete (umbraco 4.11.x)
Any idea? Thank you
I believe if that works you are OK to go with it. It certainly wouldn't be removed in any 4.X upgrade you do even if marked as obsolete, and am fairly sure for version 6 there's not been a new members API, hence the method would still be working with that version too.
Hello,
The obsolete part is even removed again: https://github.com/umbraco/Umbraco-CMS/commit/7c6aee17e90d4b59a29cbcabf915475510c072c7
I use this code to get the current member (which uses the member id): http://our.umbraco.org/forum/developers/extending-umbraco/27626-Accessing-Member-Information?p=1#comment105493
Jeroen
Ok, so I will stick with my code :)
thank you
Please mark a post as the solution if it helped you :-).
is working on a reply...