Create Your Own Custom Web Parts :
Web parts are page components that provide a combination of content and functionality.
Web parts exist on three different levels:
|On the most basic level, web parts are user controls (.ascx files) that inherit from an appropriate base class.
Web parts must be registered as objects in the system. The purpose of the objects is to:
Web parts placed onto page templates are called web part instances. You can create any number of instances of a single web part.
Instances must be inserted into web part zones, which are defined within the layouts of page templates.
A new web parts consists of two basic steps:
- Create the web part's code files in your web project.
2. Register the web part in the cms system.
- Open the Web parts application.
- Select the category where you want to place the web part.
- Click New web part.
- Type a Display name for the web part.
- Specify the path of the user control in the File path field.
- Click Save.
- Define the properties of the web part. See Working with web part properties for more information.
Before you can use your user controls as web parts, you need to register them as objects in Kentico. The system sorts web parts into categories, organized in a tree structure.
Implement web parts as user controls (.ascx files) that inherit from an appropriate base class:
|Standard web parts.
|Web parts that provide content editing functionality on the Page tab of the Pages application and in on-site editing mode (such as Editable text or Editable image).
|Web parts that allow users to switch between languages on multilingual websites.