Copied to clipboard

Flag this post as spam?

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


  • Edwin van Koppen 156 posts 270 karma points
    Jan 08, 2013 @ 15:50
    Edwin van Koppen
    0

    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?

     

  • Edwin van Koppen 156 posts 270 karma points
    Jan 16, 2013 @ 16:48
    Edwin van Koppen
    0

    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);

  • 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