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.
@{
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.
navigation with multinode tree picker
I have categories in my content tree like this:
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#.
This is what i got for now:
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.
is working on a reply...