Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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!
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
'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:
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!
is working on a reply...