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 26 posts 139 karma points
    1 week ago
    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 1061 posts 3581 karma points c-trib
    1 week ago
    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