Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Vrijdagonline/ab13d09115429d1b332bf2e736081120 to your computer and use it in GitHub Desktop.
Save Vrijdagonline/ab13d09115429d1b332bf2e736081120 to your computer and use it in GitHub Desktop.
Grouping in Razor (Umbraco 4.7.1)
@foreach(var group in Model.Children.InGroupsOf(2))
{
<div class="row-of-two">
@foreach(var item in group)
{
<span>@item.Name</span>
}
</div>
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment