I'm trying to get the documents of a category for a current project my client asked for. I think that I'm close, but I'm not totally sure. Here is the current code that I'm using for it:
CMS.SiteProvider.CategoryInfo category = CMS.SiteProvider.CategoryInfoProvider.GetCategoryInfo("Environment", CMS.CMSHelper.CMSContext.CurrentSite.ToString());
string docs = CMS.SiteProvider.CategoryInfoProvider.GetCategoryDocumentsWhereCondition(category, true);
I have about 3 documents in the
Environment category, but I still don't get any information returned. I would just like to make sure that I'm doing this correctly.