I'm trying to use dynamicnode in a MVC controller but i can't find it!
We're having a homepage and we want to find the latest 10 newsitems. In the view i've seen examples but i'm more old fashioned and i just don't want to see so much code (linq, lambda) in the view. The only thing i got is a RenderModel to find the currentpage content. Anybody know how where to find or how to use the dynamicnode?
Also can i better use uQuery or DynamicNode to get data from somewhere in the tree?
Using dynamicnode with hijacking routes
I'm trying to use dynamicnode in a MVC controller but i can't find it!
We're having a homepage and we want to find the latest 10 newsitems. In the view i've seen examples but i'm more old fashioned and i just don't want to see so much code (linq, lambda) in the view. The only thing i got is a RenderModel to find the currentpage content. Anybody know how where to find or how to use the dynamicnode?
Also can i better use uQuery or DynamicNode to get data from somewhere in the tree?
Nobody?
I got it like this:
DynamicNode Root = new DynamicNode(Model.Content.Id);
ViewBag.SubItems = Root.Descendants().Where(x => x.Visible).OrderBy(x => x.CreateDate).Take(100);
is working on a reply...