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.Extensions/README.md
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -78,11 +78,11 @@ This migration allows you to migrate pages from the source instance as [widgets]
78
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
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
80
81
-
> :warning: The target page (with an[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.
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
82
83
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
84
85
-
1.Ensure that the target page has a [page template](https://docs.kentico.com/x/iInWCQ).
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
86
87
87
```csharp
88
88
// Store page uses a template and is the parent listing page
@@ -104,6 +104,7 @@ In `Migration.Tool.Extensions/CommunityMigrations`, create a new file with a cla
104
104
// Determines where to place the widget
105
105
options.Location
106
106
// Negative indexing is used - '-1' signifies direct parent node
107
+
// Use the value of '0' if you want to target the page itself
0 commit comments