23 Mar 2010
15 Apr 2011
Link to this post
Hello I've assigned a category to various image library items in the images and documents module (image library).
I dont know how to find the items by category. I can't find category in any of the properties of what I get returned as items which have a type of CmsContentBase. I think I have to use GetMetaData("Category") but I cant find a way to convert the item to an IContent item.
Here is my code:
Telerik.Libraries.LibraryManager libraryManager = new Telerik.Libraries.LibraryManager();
IList listOfAllLibraries = libraryManager.GetAllLibraries("Image", true);
foreach (Telerik.Libraries.ILibrary library in listOfAllLibraries)
foreach ([what?] in library.GetItems??)
if ([what?].Category = "mobile" // dont know what to write here
add to a collection and do something with it..
as you can see im a bit lost.