Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save jondjones/5bcd2fac317f3baac882904080f21725 to your computer and use it in GitHub Desktop.
Save jondjones/5bcd2fac317f3baac882904080f21725 to your computer and use it in GitHub Desktop.
How To Get A List Of Scheduled Pages Within Umbraco 8 - 3
var results = SearchByIndex("TutorialIndex");
using (var umbracoContextReference = _umbracoContextFactory.EnsureUmbracoContext())
{
foreach (var result in results)
{
var contentPage = _contentService.GetById(Convert.ToInt32(result.Id));
if (contentPage == null)
{
continue;
}
var scheduledData = contentPage.ContentSchedule?.FullSchedule?.FirstOrDefault()?.Date;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment