Module: Advanced content migration techniques
3 of 9 Pages
Remodel page types as reusable field schemas
The Xperience by Kentico: Kentico migration tool allows you to remodel your content on the fly during the upgrade process.
Using a custom class mapping, you can discard fields, rename them, transform their values, and create reusable field schemas that you can share among multiple classes.
This guide will extract common fields from two page types from Kentico Xperience 13 (KX13) and move them to a Reusable field schema shared by both web page content types in Xperience by Kentico (XbyK).
Determine the new model
As discussed in the migration strategy planning guide, page types in KX13 map to content types in XbyK.
The migration tool automatically converts page types to content types with the same fields, and converts their pages to web page items in the content tree of a website channel. However, you can extend the process for specific page types, making structural adjustments as the tool converts them into content types, or changing where and how they are stored.
Examine the source classes
In the KX13 Dancing Goat site, there are two page types corresponding to coffee grinders: Manual grinder and Electric grinder.
The Manual grinder page type has the following fields:
- ManualGrinderID
- ManualGrinderPromotionTitle
- ManualGrinderPromotionDescription
- ManualGrinderBannerText
These are the Electric grinder fields:
- ElectricGrinderID
- ElectricGrinderPower
- ElectricGrinderPromotionTitle
- ElectricGrinderPromotionDescription
- ElectricGrinderBannerText
Consolidate the common fields
As both page types contain fields for a promotion title, promotion description, and banner text, we can move these fields to a shared schema.
Each content type in XbyK will need its own ID, and the electric grinder content type will need a power field that is not part of the schema.
