Copied to clipboard

Flag this post as spam?

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


  • Pete 213 posts 285 karma points
    Dec 21, 2012 @ 16:54
    Pete
    0

    Node by name and it's children

    I thought the latest razor version was supposed to allow getting nodes and their children by doc type?

    e.g (doc type names)

    Home
    > SlideShow
    >> Slide
    >> Slide

    With this:

    foreach(var item in Model.SlideShow.Slides){
      @item.Name
     }

    I get this error:

    Error loading Razor Script 
    'umbraco.MacroEngines.DynamicNodeList' does not contain a definition for 'Slides'
Please Sign in or register to post replies

Write your reply to:

Draft