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
|`type`| Describes the content type name, translated field, and sort order in the menu group. Each type should have its own configuration file. |
207
-
|`allowed_parents`| List of parent content types that can accept this type as a child. |
204
+
|`parents`| List of parent content types that can accept this type as a child. |
205
+
|`children`| List of children content types that can accept this type as a parent. |
208
206
|`appearances`| Appearance configuration. |
209
207
|`is_visible`| Determines menu visibility for the component. System components should not be visible in the menu. Default value is true. |
210
208
|`additional_data`| Allows to specify additional data for component, see [custom configuration for content type](custom-configuration.md) for more information. |
@@ -231,17 +229,44 @@ The `form` element specifies the name of the UiComponent form used to configure
231
229
232
230
Any modifications you might want to make to content type configuration forms use standard UiComponent functionality. Please see [UiComponent Documentation](http://devdocs.magento.com/guides/v2.3/ui_comp_guide/bk-ui_comps.html) for additional information.
233
231
234
-
### `allowed_parents` configuration reference
232
+
### `parents` configuration reference
235
233
236
-
The `allowed_parents` element specifies which content types can accept this type as a child.
234
+
The `parents` element specifies which content types can accept this type as a child.
Copy file name to clipboardExpand all lines: app/code/Magento/PageBuilder/docs/how-to-add-new-content-type.md
+10-23Lines changed: 10 additions & 23 deletions
Original file line number
Diff line number
Diff line change
@@ -60,9 +60,9 @@ To add configuration for a new content type, create a file under the following l
60
60
icon="icon-modulename-simple"
61
61
sortOrder="35"
62
62
translate="label">
63
-
<allowed_parents>
64
-
<parentname="row"/>
65
-
</allowed_parents>
63
+
<parentsdefault_policy="deny">
64
+
<parentname="row"policy="allow"/>
65
+
</parents>
66
66
<appearances>
67
67
<appearancedefault="true"
68
68
name="default"
@@ -264,10 +264,13 @@ Now, let's add content type that can contain other content types. Create configu
264
264
icon="icon-vendorname-complex"
265
265
sortOrder="35"
266
266
translate="label">
267
-
<allowed_parents>
268
-
<parentname="row"/>
269
-
<parentname="column"/>
270
-
</allowed_parents>
267
+
<parentsdefault_policy="deny">
268
+
<parentname="row"policy="allow"/>
269
+
<parentname="column"policy="allow"/>
270
+
</parents>
271
+
<childrendefault_policy="deny">
272
+
<childname="heading"policy="allow"/>
273
+
</children>
271
274
<appearances>
272
275
<appearancedefault="true"
273
276
name="default"
@@ -300,22 +303,6 @@ Now, let's add content type that can contain other content types. Create configu
300
303
</config>
301
304
```
302
305
303
-
Now we need to specify which content types can be inserted into our new content type. To allow default content type Heading be inserted into our Complex content type, add the following configuration.
0 commit comments