Customizing providers

Providers in the Kentico API are classes that allow the system to manipulate objects and perform various actions. The following list presents the providers that the system uses and their purpose:

  • Info providers contain methods for working with specific types of objects stored in the database, such as users, contacts, custom table records, etc.
  • Data provider handles low-level database operations. The Info providers are built on top of the Data provider and use it to store and fetch data.
  • E-mail provider manages the e-mail queue and sends e-mails.
  • Search provider ensures the functionality of the SQL search.
  • File system providers allow you to access various file systems. They extend the CMS.IO namespace. See Working with physical files using the API to learn how to write a custom file system provider.

By developing custom providers and using them instead of the standard ones, you can modify the behavior of the application (or a specific feature) according to your exact requirements.

Adding your custom code files

When developing custom functionality, you can place your code files in:

  • The App_Code folder (or CMSApp_AppCode -> Old_App_Code if you use a web application project)
  • A separate project (assembly) integrated into the main web project

Placing your customizations into the App_Code folder ensures that the code is compiled dynamically when required and automatically referenced in all other parts of the application.

On this page

In this section

Writing the custom code

Every class used to customize the application must inherit from the original class. This allows you to implement your modifications or additions by overriding the members of the given class. When creating overrides for existing methods, it is recommended to call the original base method within your custom code.

Registering custom providers

After you write the code, you must register your custom classes to ensure that the system uses them instead of the default providers. You can choose between two options of registering custom provider classes:

Other customization options

In addition to providers, you can also customize the following helper and manager classes:

Helper class nameNamespaceDescription


Provides marketing automation support for common actions related to Salesforce integration.
CacheHelperCMS.HelpersHandles operations with cache items.
ClassHelperCMS.BaseTakes care of dynamically loaded classes and assemblies.
CookieHelperCMS.HelpersContains methods for managing cookies.
DirectoryHelperCMS.IOManages directories in the file system.
LeadReplicationHelperCMS.SalesForceReplicates contacts into SalesForce leads.
MediaHelperCMS.HelpersProvides methods for rendering media content.
OutputHelperCMS.OutputFilterManages the HTML output and the output cache.
TriggerHelperCMS.AutomationManages marketing automation triggers.
Manager class nameNamespaceDescription
AutomationManagerCMS.AutomationHandles the marketing automation process.
SyncManagerCMS.SynchronizationSynchronizes page and object data to other instances of the application when using Content staging.
VersionManagerCMS.DocumentEngineProvides page versioning functionality.


Handles the workflow process.

You can also use  global event handlers to customize the behavior of the system. Handlers allow you to execute custom code whenever a specific event occurs in the system, such as page or object changes, various parts of the user authentication process, etc.