Getting items
You will frequently need to get lists of content items from the Content Manager. This section explains how you can use the GetItems() and GetListItems() methods to retrieve them.
- GetListItems() and GetItems() methods
To retrieve the contents of any type of container in the Content Manager you can use theGetListItems()method, which returns a DOM document, or theGetItems()method which returns aCollectionof objects. - Filtering the result of GetListItems()
TheGetListItems()andGetItems()methods takes an optional filter parameter to filter the list of items it retrieves. - Example of XML returned by GetListItems()
This topic provides a typical example of aGetListItems()call and the XML the call returns. - Getting properties for a set of items
To retrieve information about a set of items that are not in the same Folder, Structure Group, or other container, using the TOM.NET API you can specify a set of item IDs of repository-local objects and retrieve those items' properties. - Getting the ancestors of a repository-local object
You can use TOM.NET to retrieve the full set of ancestors (parent, grandparent and so on) for any repository-local object. You can use this information to, for example, construct a breadcrumb trail to the object. - Filtering the result of GetListRepositoryLocalObjects()
TheGetListRepositoryLocalObjects()andGetRepositoryLocalObjects()methods take a filter parameter to filter the list of retrieved items. The filter class isTridion.ContentManager.ContentManagement.RepositoryLocalObjectsFilter. You can filter the returned DOM document or objects by setting properties on the specific filter object. - Properties for filtering GetListItems() results
You can specify a parameter onGetListItems()andGetItems()methods to filter list of items it retrieves. - GetListItems() result columns
Each item that theGetListItems()method returns a number of columns:BaseColumns,IncludeAllowedActionColumnsandIncludeRelativeWebDavUrlColumn.