I have a site that's running Ektron v8.7 sp2. There is a taxonomy that has library items, and those library items have metadata assigned to them. I've been trying to find an efficient way that I can get all library items and their associated metadata from a particular taxonomy.
ContentManager
class in the FrameworkAPI does not return Library Items. LibraryManager
class in the FrameworkAPI has two methods for getting individual items, but these would require an API call for each item in the taxonomy, which does not seem very efficient.LibraryManager.GetItem()
- returns LibraryData with MetaData (Ektron.Cms.ContentMetaData[]
) and Taxonomies (Ektron.Cms.TaxonomyBaseData[]
) populated LibraryManager.GetLibraryItemByContentId()
- returns LibraryData but MetaData and Taxonomies are both null LibraryManager
class also has a GetList()
method, but it doesn't meet my needs:
I'd prefer a way to get the data via the Framework API, but I'd also appreciate anything that uses Ektron's legacy APIs. The data is there, and I can get it, but I'm looking for an efficient way to do so.
Sticking with the APIs, I'm not sure there is an efficient way to mesh all of that data together.
This is another argument, though, for using the DMS and not the Library. The DMS will treat the files as content and allow you to use the ContentManager in all its glory. The Library is a simple tool for simple management, the DMS / ContentManager is much stronger for what you are trying to achieve.