Skip to content

Instantly share code, notes, and snippets.

@sniffdk
Created February 5, 2013 21:22
Show Gist options
  • Save sniffdk/4717777 to your computer and use it in GitHub Desktop.
Save sniffdk/4717777 to your computer and use it in GitHub Desktop.
Get root sibling node in Umbraco v6
@{
var root = Model.Content.AncestorOrSelf(1);
var repository = root.Sibling("Repository");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment