Handling Component content in code

Components and Multimedia Components contain information that you will probably want to select and organize. This section explains typical scenarios related to handling Component content in code and includes code samples for each scenario.

The implementation topics distinguish between the following two scenarios:

Handling content of a Component contained in the input package
To access this content, your C# content typically makes a call to package.GetValue(someString), where someString denotes an item in the package. For example, in a Component Template, setting someString to "Component.ID" retrieves the Content Manager URI (unique identifier) of the Component being processed.
Handling content of a Component contained in a Folder in the Content Manager
To access this content, your C# content typically makes a call to engine.GetSession() to access the TOM.NET entry point, and navigates to a Component from there (this typically involves the use of the GetItems() or GetListItems() methods).