Copied to clipboard

Flag this post as spam?

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


  • umbracocool 108 posts 197 karma points
    Oct 28, 2012 @ 07:18
    umbracocool
    0

    'umbraco.MacroEngines.DynamicNodeList' does not contain a definition for 'Random'

     

    Hello friends!, Really gave me headaches with this. What I want is to get the following:

     

     @foreach (var item in @Model.NodeById(1170).Children.Random()) {
      <p>@item.Name</p>
     }

     

    I want to get a single node of a random list, but what throws me is this error:

    'umbraco.MacroEngines.DynamicNodeList' does not contain a definition for 'Random'

    But I followed this post http://our.umbraco.org/forum/developers/razor/24066- I upgraded umbraco.MacroEngines.dll, but does not work. What I get is this error:

     

    ut I followed this post  I

    Help me please!. Thank you!

     

Please Sign in or register to post replies

Write your reply to:

Draft