Example #1
0
    private void AddCategories(GoogleXmlSitemaps sitemap)
    {
        int howMayItems;

        sitemap.AddCategories(
            DataAccessContext.CategoryRepository.GetByRootID(
                StoreContext.Culture,
                DataAccessContext.Configurations.GetValue("RootCategory", CurrentStore),
                "CategoryID",
                BoolFilter.ShowAll,
                ConvertUtilities.ToInt32(uxCategoryStartText.Text.Trim()) - 1,
                ConvertUtilities.ToInt32(uxCategoryEndText.Text.Trim()) - 1,
                out howMayItems));
    }