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: 13/umbraco-deploy/deployment-workflow/import-with-migrations.md
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -123,7 +123,7 @@ Open source migrators may be built by HQ or the community for property editors f
123
123
124
124
#### Grid to Block Grid
125
125
126
-
The grid editor introduced in Umbraco 7 has been removed from Umbraco 14. It's functionality is replaced with the Block Grid.
126
+
The Grid editor introduced in Umbraco 7 can still be used in version 13, but has been removed from Umbraco 14. It's functionality is replaced with the Block Grid editor.
127
127
128
128
With Deploy migrators we have support for migrating Data Type configuration and property data between these property editors.
129
129
@@ -146,6 +146,10 @@ internal sealed class DeployMigratorsComposer : IComposer
146
146
}
147
147
```
148
148
149
+
{% hint style="info" %}
150
+
The project you're importing into needs to know about any custom legacy Grid editor configurations to correctly migrate to the Block Grid editor. Make sure to either copy the `grid.editors.config.js` and `package.manifest` (containing grid editors) files or override the `GetGridEditors()` method of the artifact migrator to provide this.
151
+
{% endhint %}
152
+
149
153
These implementations make use of the following conventions to migrate the data:
Copy file name to clipboardExpand all lines: 14/umbraco-deploy/deployment-workflow/import-with-migrations.md
+9-5Lines changed: 9 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -122,11 +122,11 @@ Open source migrators may be built by HQ or the community for property editors f
122
122
123
123
#### Grid to Block Grid
124
124
125
-
The grid editor introduced in Umbraco 7 has been removed from Umbraco 14. It's functionality is replaced with the Block Grid.
125
+
The Grid editor introduced in Umbraco 7 has been removed from Umbraco 14. It's functionality is replaced with the Block Grid.
126
126
127
127
With Deploy migrators we have support for migrating Data Type configuration and property data between these property editors.
128
128
129
-
You can configure the default migration with the following composer:
129
+
Deploy adds the `ReplaceGridDataTypeArtifactMigrator` and `GridPropertyTypeMigrator` migrators by default, so using a custom migrator requires replacing the default ones:
130
130
131
131
```csharp
132
132
usingUmbraco.Cms.Core.Composing;
@@ -137,20 +137,24 @@ internal sealed class DeployMigratorsComposer : IComposer
The project you're importing into needs to know about any custom legacy Grid editor configurations to correctly migrate to the Block Grid editor. Umbraco 14 doesn't support reading the `grid.editors.config.js` and `package.manifest` (containing grid editors) files anymore, so you have to provide this by overriding the `GetGridEditors()` method of the artifact migrator.
150
+
{% endhint %}
151
+
148
152
These implementations make use of the following conventions to migrate the data:
149
153
150
154
-`ReplaceGridDataTypeArtifactMigrator`:
151
155
- Grid layouts are migrated to an existing or new element type with an alias based on the layout name, prefixed with `gridLayout_` (this can be customized by overriding `MigrateGridTemplate()`);
152
156
- Row configurations are migrated to an existing or new element type with an alias based on the row name, prefixed with `gridRow_` (this can be customized by overriding `MigrateGridLayout()`);
153
-
- Similarly, grid editors are migrated to an existing or new element type with an alias based on the editor alias, prefixed with `gridEditor_` (this can be customized by overriding `MigrateGridEditor()`). The available editors are retrieved from the `grid.editors.config.js` files (can be overridden in `GetGridEditors()`). Each migrated grid editor will have the following property types added to the element type:
157
+
- Similarly, grid editors are migrated to an existing or new element type with an alias based on the editor alias, prefixed with `gridEditor_` (this can be customized by overriding `MigrateGridEditor()`). The default editors used in version 13 are returned by `GetGridEditors()` and you can override this method to include your custom editors. Each migrated grid editor will have the following property types added to the element type:
154
158
- The `media` grid editor is migrated to multiple properties: the `value` property contains the selected media item (using Media Picker v3), `altText` the alternate text (using a Textbox) and `caption` the caption (also using a Textbox);
155
159
- The remaining grid editors create a single `value` property that uses the following editors:
156
160
-`rte` - the default 'Rich Text Editor', falling back to the first `Umbraco.TinyMCE` editor.
0 commit comments