private void ImportBlog() { string fileLocation = @"C:\Users\Kloss\Documents\Projects\XBlog\test.xml"; List<WPPost> listWordpressPosts = ImportManager.Import(fileLocation, false, false, false); BlogHome bh = new BlogHome(); bh.InnerItem.Editing.BeginEdit(); bh.BlogName = "meh"; bh.Name = "meh"; bh.InnerItem.Editing.EndEdit(); ImportManager.ImportPosts(bh, listWordpressPosts); }
public static IEnumerable<BlogPost> GetBlogPostsByTag(BlogHome blogRoot, IEnumerable<string> taxonomyItemNames, int startRowIndex, int maximumRows, bool matchAll, bool descending) { //TODO when copying XCore code... //.Slice(startRowIndex, maximumRows) Comes form XCore utilities return XBlogDataManager.GetItemsByTaxonomy(blogRoot.InnerItem, taxonomyItemNames, int.MaxValue, matchAll, descending).CreateAs<BlogPost>(); }