Sitefinity

Overview of Generic Content API Send comments on this topic.
See Also
Developing with Sitefinity > Modules > Modules API > Generic Content > Overview of Generic Content API

Glossary Item Box

The Generic Content module allows users to easily create and manage content. This topic provides information about examples for the main methods available in the ContentManager class. 

 

The full name of the manager class for Generic Content based modules is Telerik.Cms.Engine.ContentManager. This is the class you should use when working with Generic Content based modules API.

 

How to Start Using the ContentManager Class

You can create a new instance of the ContentManager class anywhere in your code in order to work with Generic Content based module data. If working in an assembly, make sure you reference the Telerik.Cms.Engine assembly before you use the ContentManager class.


In order to start using the API, create a new instance of the ContentManager class. There are two possible ways to do that:

 

Create new instance of ContentManager with empty constructor:

Copy Code
// creates new instance of ContentManager class with empty constructor,
// which means that default provider will be used
Telerik.Cms.Engine.ContentManager contentManager = new Telerik.Cms.Engine.ContentManager();

 

Create a new instance of ContentManager with specified provider name:

Copy Code
// creates new instance of ContentManager class with provider name as parameter,
// which means that ContentManager will use specified provider when working with data
Telerik.Cms.Engine.ContentManager contentManager = new Telerik.Cms.Engine.ContentManager("MyCustomProvider");

 

Content

Following are the topics that explain how to work with different methods of ContentManager:

Content Items:

Comments:

Categories:

Tags:

 

See Also