I am trying to use the GetContent method from ContentManager to retrieve all of the content items from a specific library (in other words by parentID) AND with a specific category. I am trying to use GetContent(Int32,Int32,IMetaSearchInfo,Guid) to achieve this. However, I get this error in VS2010:
Argument 4: cannot convert from 'System.Guid' to 'Telerik.Cms.Engine.IMetaSearchInfo'
If I just do a GetContent(IMetaSearchInfo) it works fine.
According to your API documentation (AND intellisense) this should work, yet its telling me that it's looking for IMetaSearchInfo where I supply the ParentID guid.
Why is it doing this and is there maybe a better way to achieve what I am trying to do here?
ContentManager cm =
LibraryManager lm =
ILibrary library = lm.GetLibrary(LibraryName);
IList categories = cm.GetCategories();
IMetaSearchInfo filter =
IList item = lm.GetContent(0, 0, filter, library.ID);
Again, if I just do ILIst item = lm.GetContent(filter) it works fine.