Skip to content

Instantly share code, notes, and snippets.

@amirkhan81
Created January 21, 2016 20:15
Show Gist options
  • Save amirkhan81/8b740ca005790cf77ff2 to your computer and use it in GitHub Desktop.
Save amirkhan81/8b740ca005790cf77ff2 to your computer and use it in GitHub Desktop.
@inherits Umbraco.Web.Mvc.UmbracoTemplatePage
@{
var root = Model.Content.AncestorOrSelf();
var top = root.Descendants("ProgramOrEventPage").OrderBy("startDateAndTime").GroupBy("startDateAndTime.Day");
}
@foreach (var groupDate in top) {
<h1>@groupDate.Key</h1>
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment