Copied to clipboard

Flag this post as spam?

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


  • Silvija 58 posts 172 karma points
    Apr 04, 2019 @ 20:57
    Silvija
    0

    navigation with multinode tree picker

    I have categories in my content tree like this:

    enter image description here

    And i have members with Multinode treepicker property. I would like to display all categories on my navigation and when someone click on specific category it should display all members under that category.

    I dont have much expirience with c#.

  • Silvija 58 posts 172 karma points
    Apr 06, 2019 @ 12:09
    Silvija
    0

    This is what i got for now:

        @{
        var pageName = Model.Name;
    
        var members = Services.MemberService.GetMembersByPropertyValue("categoryPicker", pageName);
        var memberCounter = members.Count();
    }
    
    @foreach (var item in members)
    {
        if (members.role == "premium")
        {
            <p class="text-success">@item.Email</p>
        }
        else
        {
            <p>@item.Email</p>
        }
    
    }
    

    What i am trying to do is get all members under specific category with this line : Services.MemberService.GetMembersByPropertyValue("categoryPicker", pageName); But it dosent work with multinode tree picker i dont know why.

    Second problem is here if (members.role == "premium") This is not good, I am just trying explain to what i want to achieve. I want to mark all my premium members with red color.

    I have tried many ways but always is missing something.

Please Sign in or register to post replies

Write your reply to:

Draft