You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Migration.Tool.CLI/README.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -168,6 +168,8 @@ Pages from older product versions can be migrated to either to [website channel
168
168
- Page permissions (ACLs) are currently not migrated into Xperience by Kentico.
169
169
- Migration of page builder content is only available for Kentico Xperience 13.
170
170
171
+
Additionally, you can define [custom migrations](../Migration.Tool.Extensions/README.md) to change the default behavior and migrate page content to widgets in Xperience by Kentico.
172
+
171
173
#### Page builder content
172
174
173
175
> :warning: Page builder content migration is only available when migrating from Kentico Xperience 13.
-[Page to widget migrations](#migrate-pages-to-widgets)
9
10
-[Custom class mappings](#custom-class-mappings)
10
11
2.[Register the migration](#register-migrations)
11
12
@@ -70,13 +71,77 @@ You can see samples:
70
71
71
72
After implementing the migration, you need to [register the migration](#register-migrations) in the system.
72
73
74
+
## Migrate pages to widgets
75
+
76
+
This migration allows you to migrate pages from the source instance as [widgets](https://docs.kentico.com/x/7gWiCQ) in the target instance. This migration can be used in the following ways:
77
+
78
+
- If you have a page with content stored in page fields, you can migrate the values of the fields into widget properties and display the content as a widget.
79
+
- If you have a page that serves as a listing and displays content from child pages, you can convert the child pages into widgets and as content items in the content hub, then link them from the widgets.
80
+
81
+
> :warning: The target page (with a [Page Builder editable area](https://docs.kentico.com/x/7AWiCQ)) and any [Page Builder components](https://docs.kentico.com/x/6QWiCQ) used in the migration need to be present in the system before you migrate content. The target page must be either the page itself or any ancestor of the page from which the content is migrated.
82
+
83
+
In `Migration.Tool.Extensions/CommunityMigrations`, create a new file with a class that inherits from the `ContentItemDirectorBase` class and override the `Direct(source, options)` method:
84
+
85
+
1. If the target page uses a [page template](https://docs.kentico.com/x/iInWCQ), ensure that the correct page template is applied.
86
+
87
+
```csharp
88
+
// Store page uses a template and is the parent listing page
89
+
if (source.SourceNode.SourceClassName=="Acme.Store")
90
+
{
91
+
// Ensures the page template is present in the system
0 commit comments