Copied to clipboard

Flag this post as spam?

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

  • Ruder Partap Singh 27 posts 141 karma points
    Jan 25, 2023 @ 13:44
    Ruder Partap Singh

    Get name of node from multi tree node picker in umbraco 8

    Hi all

    i've added a multitree node picker in a member type node. now in c#, i need to get the node name of selected node.

    Can anyone help me to how to get node data from multinode tree picker from a Member Type node

    I've tried

    IMemberService memberService = Services.MemberService;
                    var logedInUser = Membership.GetUser();
                    var memberData = memberService.GetAllMembers().FirstOrDefault(x => x.ContentType.Alias == "Member" && x.Username == logedInUser.UserName);                   
     var stores = memberData.GetValue<IEnumerable<IPublishedContent>>("storeId");

    but its not working. I've value in the property but not able to get the node details


  • Huw Reddick 1684 posts 5917 karma points MVP c-trib
    Jan 27, 2023 @ 08:41
    Huw Reddick


    Are you getting any errors?

    What is the value of stores? (don't forget it is a collection so you will need to iterate over the results to get the node)

Please Sign in or register to post replies

Write your reply to: