I have created a list of using the CreatorNames property. I need to know how to filter posts by the Creator now.
Here is my code below I currently have. How would I finish this. Thanks in advance. I am attempting to create a query string but of course it does not work because I don't know how I am supposed to get the nodes once the creator is selected. Thanks
<ul> @foreach(dynamic node in @Model.NodeById(1089).Descendants("ScienceResearchUpdatesPost").OrderBy("CreatorName")) { if (creatorList != node.CreatorName) { <li><a href="@baseNode.Url?author=@node.CreatorName">@node.CreatorName</a></li> } creatorList = node.CreatorName; } </ul> }
Filter Nodes by Creator - Razor
I have created a list of using the CreatorNames property. I need to know how to filter posts by the Creator now.
Here is my code below I currently have. How would I finish this. Thanks in advance. I am attempting to create a query string but of course it does not work because I don't know how I am supposed to get the nodes once the creator is selected. Thanks
<ul>
@foreach(dynamic node in @Model.NodeById(1089).Descendants("ScienceResearchUpdatesPost").OrderBy("CreatorName"))
{
if (creatorList != node.CreatorName)
{
<li><a href="@baseNode.Url?author=@node.CreatorName">@node.CreatorName</a></li>
}
creatorList = node.CreatorName;
}
</ul>
}
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.