KX12To13Converter.Admin
12.29.12
See the version list below for details.
dotnet add package KX12To13Converter.Admin --version 12.29.12
NuGet\Install-Package KX12To13Converter.Admin -Version 12.29.12
<PackageReference Include="KX12To13Converter.Admin" Version="12.29.12" />
paket add KX12To13Converter.Admin --version 12.29.12
#r "nuget: KX12To13Converter.Admin, 12.29.12"
// Install KX12To13Converter.Admin as a Cake Addin #addin nuget:?package=KX12To13Converter.Admin&version=12.29.12 // Install KX12To13Converter.Admin as a Cake Tool #tool nuget:?package=KX12To13Converter.Admin&version=12.29.12
Kentico Xperience 12 Portal to Kentico Xperience 13 Converter
This tool allows you to convert your portal engine site to a KX13 upgradeable instance.
Kentico does not support migrating Kentico Xperience 12 Portal engine to Kentico Xperience 13, but it does support migrating a Kentico Xperience 12 MVC Site. This tool does the heavy lifting of converting your portal engine site into a KX12 MVC Site so you can upgrade to KX13. Features below.
Installation
Kentico Application ("Mother"/"Admin"):
- Install
KX12To13Converter.Admin
Nuget Package on your Kentico Application - Either install the
KX12To13Converter.Base
Nuget Package on your Kentico Application, OR clone down the KX12To13Converter.Base class library from this repository and include it in your solution and reference it on your Kentico Application (for easier debugging). - You will probably also need to upgrade the
Kentico.Libraries library
to your KX12 instance Hotfix (since these packages depend on this library). - Rebuild your web application
- Log into Kentico as a Global Administrator
- Go to Modules
- Search and edit
KX12 to 13 Converter
- Go to
Sites
and add to your site.
Wiki
This repo has a wiki with tips, tricks, sql queries and c# scripts to help you during this processes, please read through the wiki before you begin your journey.
Usage - Upgrade Operations
When attempting an upgrade, these Pre Upgrade Operations will help convert your portal engine site into a MVC-like site. Each page has instructions on it to aid you.
WARNING: You should never perform these operations on a LIVE site. Always clone the kentico instance you wish to upgrade and perform these steps on that clone, backing up along the way.
1 - Versioning and Workflow
Version history should be eliminated prior to an upgrade, but before that occurs all documents must be in a checked in / published state. This helps perform those operations.
2 - Remove Classes
Many page types in Portal engine were only to house Transformations, Queries, or were part of Kentico's default package. This UI helps you find unused classes and optionally delete classes that you deem as obsolete.
3 - Convert Page Types
In KX12 MVC / KX13, all page types are either Content Only or Container Page Types. Additionally, during the upgrade to KX13 the upgrade tool looks for certain configurations in order to determine if Page Builder and/or Urls are enabled. This UI allows you to properly convert and set these. As well as alerting you to Container Page Types that may be important to the URL structure, which may need to be converted to a Content Only Page Type.
4 - Convert Forms
Only MVC Created forms are allowed during an upgrade (you can't upgrade at all if it detects any older forms). This UI helps you convert your forms over to an MVC form, and map the form controls to your new components.
5 - Site and DB Prep
There are various old foreign key references and other database level issues that will stop an upgrade from occurring, this will correct these and also set your sites to "Content Only" (MVC) as the final step.
Usage - Page Converter
Kentico Xperience 12 MVC / 13 have a drastically different structure for Page Templates, Sections, and Widgets than Portal Engine did. However, much of the same data exists between the two. The Page Converter system allows you to map Portal Engine Identities/Properties into your newly developed Page Builder Templates / Sections / Widgets.
It does this through a series of JSON structured configuration files (plus optional event hooks for further customization)
- In the Admin, go to the
Page Converter
application. - Follow steps 1-3, generating your configuration files and storing them in a separate location.
- Modify these Configurations according to the instructions on each page.
- On Step 4, you can either manually paste your configurations, or you can store them in the Settings → KX12 to 13 Converter → Configurations
- Select your Page/Pages and Conversion Mode.
Conversion Modes
Preview (Single Page): Select a single page and the converted Template and Page Builder Widgets will show below. This is useful to see how your configuration is working or if you already have an upgraded instance and want to do a database replace the DocumentPageTemplateConfiguration
and DocumentPageBuilderWidgets
fields.
Convert and Store in Conversions Only: This will processes the Page(s) you select and store them in the Conversions Table. You can access this through the KX12 to 13 Converter
→ Conversions
Application. Here you can see if they were successful, what conversion notes may exist, etc.
Convert and Save to Document: This should only be done on a cloned instance during your pre-upgrade work. This will convert and update the DocumentPageTemplateConfiguration
and DocumentPageBuilderWidgets
fields on the document. (recommend you disable versioning first).
Convert and Send to KX13 instance: [Future] I'm working on a KX13 receiving module that you'll be able to 'push' the converted data from your KX12 to your KX13 instance, since most upgrades take a long time and often you want to adjust and re-test configurations. This option will allow you to convert and send the files.
Conversions Application
This UI shows you all the converted document status. Here you can see the Conversion Notes and determine what may have went wrong, you can optionally re-try converting or send individual documents as well.
Conversion Events
While the tool does a pretty good job of converting everything using the configuration file, sometimes you need to do some adjustments. Below lists all the events you can implement through the Global Events, found at KX12To13Converter.Events.PortalToMVCEvents
.
Each event has a Before and After, and each allows you to set a "Handle" boolean flag in the arguments to prevent default logic from occurring.
The Logic goes:
- Execute the
Before
Event - If Handled, then skip the default logic
- If not Handled, execute the default logic
- Execute the
After
Event
- ProcessPage: When a document is first starting to processes
- ProcessTemplate: For when converting the Portal Template to the Page Builder Template
- ProcessEditableArea: For when converting a Template Webpart Zone to Page Builder Editable Area
- ProcessSection: For when converting any Layout Widgets (ex: Bootstrap Layout) to Page Builder Sections
- ProcessSectionZone: For when converting any widget zones within those Layout Widgets to a Page Builder Section's Zones (ex the first, then second column of a bootstrap layout)
- ProcessWidget: For when converting a Portal Engine Widget to a Page Builder Widget
Also for your convenience, I have included a BootstrapLayout 3 to 4 conversion hook implementation since the formatting of those has changed.
PortalToMVCEvents.ProcessSection.After += ProcessSection_After_BootstrapLayout.ProcessSectionAfter_Bootstrap;
Nuances / Conversion Info
Below are some nuances of the conversion processes:
- Since Portal Engine allows for any number of nested widget zones, and Page Builder does not, only the parent layout widget will be parsed into a section around the widgets. Any ancestor layouts are listed in the ProcessWidget's event arguments if you need further adjustments.
- EditableText and EditableImages in the page templates are treated as Webpart Zones and a default section and Text/Image widget is placed within it.
- Since Inline Widgets do not exist in KX13, you can configure these to Ignore, Split, Wrap, or Add After (details on the Widget Configuration UI Step).
- You can parse multiple zones into a single Editable Area if you wish.
Acknowledgement, Contributions, bug fixes and License
This tool is free for all to use, and probably my last major tool for the KX12 Portal Engine system.
Compatibility
Can be used on any Kentico Xperience 12 Portal Site.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net is compatible. |
-
- Kentico.Libraries (>= 12.0.29)
- KX12To13Converter.Shared (>= 12.29.12)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Republishing with empty settings, also converted unigrid extension to use interface so code in base.