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 28 posts 142 karma points
    Jan 25, 2023 @ 13:44
    Ruder Partap Singh
    0

    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

    Thanks

  • Huw Reddick 1929 posts 6697 karma points MVP 2x c-trib
    Jan 27, 2023 @ 08:41
    Huw Reddick
    0

    Hi,

    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:

Draft