Is this really the version you are looking for? Kentico Xperience 8.2 Documentation is no longer updated. Use the switcher in the header to choose your product version.
Web part inheritance allows you to create specialized web parts based on other web parts. Inherited web parts use the same code files as the original, but you can:
To create an inherited web part:
Inherited web parts work like regular standalone web parts. The main difference is that inherited web parts have the Inherited from field showing the parent web part instead of the File name selector that specifies the source file.
Modify the properties of inherited web parts on the Properties tab.
You can:
You cannot:
Tip: Click Reset field to revert all settings of a modified property back to the original state (the system copies the property settings from the parent web part).
When you add new instances of the web part to a page, the system pre-configures the properties according to the specified values.
The following example shows how to create a news list web part inherited from the Repeater web part. The news list displays news articles by default, without requiring any configuration of the web part properties.
Open the Web parts application.
Select the Listings and viewers category.
Click New web part.
Choose Inherit from an existing web part and enter the following values:
Display name: Custom news list
Inherit from: Listings and viewers -> Pages -> Repeater
Click Save.
On the General tab, check Skip initial configuration and click Save again.
Switch to the Properties tab of the newly created web part.
Set the default values for the Path property:
Select Path in the list of fields.
Type /% as the Default value.
Click Save.
Repeat the previous step for the following properties and default values:
Tip: You can also customize the properties of the inherited web part by adding new fields.
Now you can add the inherited web part to the site:
The web part displays all news items from the site without requiring any additional configuration.
Note: After adding an instance of an inherited web part, users can set the properties to any other values. The default values only make it easier to add web parts with specialized functionality (without requiring any configuration).