public Entry GetEntry(DateTime entryDate, string entryTitle) { SiteConfig siteConfig = SiteConfig.GetSiteConfig(); ILoggingDataService logService = LoggingDataServiceFactory.GetService(SiteConfig.GetLogPathFromCurrentContext()); IBlogDataService dataService = BlogDataServiceFactory.GetService(SiteConfig.GetContentPathFromCurrentContext(), logService); //Only pass in the date portion of the entry date, do not pass in the time portion. DayEntry dayEntry = dataService.GetDayEntry(entryDate.Date); //this replacement of characters in the title was lifted directly from // DasBlog.Web.Core::TitleMapperModule.HandleBeginRequest() entryTitle = entryTitle.Replace(".aspx", ""); entryTitle = entryTitle.Replace("+", ""); entryTitle = entryTitle.Replace(" ", ""); entryTitle = entryTitle.Replace("%2b", ""); entryTitle = entryTitle.Replace("%20", ""); //now that we have a properly formatted title, use it to get a specific // entry from the DayEntry object. If there is more than one match to the // title, the most recent entry will be matched. Entry entry = dayEntry.GetEntryByTitle(entryTitle); return(entry); }