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
How get in a macro a n random nodes?
Solved: foreach (var page in startNode.Children.Where("Visible").Random(itemNumber))
Imports in macro:
@using System.Collections;
@using umbraco.MacroEngines;
@inherits umbraco.MacroEngines.DynamicNodeContext
is working on a reply...
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.
Continue discussion
Get Random(n) Child Nodes: How?
How get in a macro a n random nodes?
Solved: foreach (var page in startNode.Children.Where("Visible").Random(itemNumber))
Imports in macro:
@using System.Collections;
@using umbraco.MacroEngines;
@inherits umbraco.MacroEngines.DynamicNodeContext
is working on a reply...
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.