Skip to content

Instantly share code, notes, and snippets.

@jamesrpatterson
Created November 21, 2012 14:57
Show Gist options
  • Save jamesrpatterson/4125246 to your computer and use it in GitHub Desktop.
Save jamesrpatterson/4125246 to your computer and use it in GitHub Desktop.
Getting nodes with a specified category.
int categoryId = 5;
// Let's assume node with ID 45 is the root page of a blog or news section.
foreach (Node node in NodeHelpers.GetNodesInCategory("categories", categoryId, 45))
{
// do something with node.
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment