Copied to clipboard

Flag this post as spam?

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


  • Carlos 338 posts 472 karma points
    Jun 21, 2012 @ 23:20
    Carlos
    0

    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><href="@[email protected]">@node.CreatorName</a></li>    
            }
            creatorList node.CreatorName;
          }
         </ul>
        
      }

  • 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.

Please Sign in or register to post replies