Created
February 5, 2013 21:26
-
-
Save mattbrailsford/4717814 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var testimonials = Model.Content.AncestorOrSelf(1) | |
.Sibling("Repository") | |
.Descendants("Testimonial"); |
I use the following way to get to siblings of Homepage.
something like this:
dynamic root = Model.NodeById(-1);
dynamic testamonial = root.Descendants("Testimonial");
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You could perhaps use Examine to get testimonials: