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: docs/create-basic-content-type/overview.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -35,7 +35,7 @@ The steps for creating the Quote content type are illustrated and described belo
35
35
3.**Add component**: Create a JavaScript file that defines the behavior of your content type on the Admin stage (`preview.js`) and the storefront (`master.js`).
36
36
4.**Add form**: Create a UI component form and a layout so Admin users can edit your content type within the Page Builder editor.
37
37
5.**Add styles**: Create LESS files to style your content types when rendered in the Admin UI and on the storefront.
38
-
6.**Add icon**: Create an SVG icon to visually identify your content type within the Page Builder panel.
38
+
6.**Add an icon**: Create an SVG icon to visually identify your content type within the Page Builder panel.
@@ -67,8 +67,8 @@ The `type` element defines the key properties of your content type. The attribut
67
67
|`preview_component`| Optional. JavaScript file (`preview.js`) that provides rendering logic within the Admin UI. The preview component does not need to specify the `.js` extension. If you don't provide the `preview_component`, Page Builder uses the base `Preview` component shown in the code: `Magento_PageBuilder/js/content-type/preview`. |
68
68
|`master_component`| Optional. JavaScript file (`master.js`) that provides rendering logic generic for all appearances of your content type when rendered on the storefront. The master component does not need to specify the `.js` extension. If you don't provide the `master_component`, Page Builder uses the base `Master` component shown in the code: `Magento_PageBuilder/js/content-type/master`. |
69
69
|`form`| UI component form that provides the form controls for editing your content type. |
70
-
|`icon`| Optional. Class name for your PNG or SVG image (or font icon) displayed in the Page Builder panel alongside the label. If no icon value is provided, the content type will simply be displayed in the Page Builder panel without an icon. |
71
-
|`sortOrder`| Optional. The listed order within the menu group. For example, `sortOrder=21` puts the content type third in the `Elements` menu group, after the content types with `sortOrder`s of 10 and 20. |
70
+
|`icon`| Optional. Class name for your PNG or SVG image (or font icon) displayed in the Page Builder panel alongside the label. If you don't provide an icon value, the Page Builder panel displays the content type name without an icon. |
71
+
|`sortOrder`| Optional. The listed order within the menu group. For example, `sortOrder=21` puts the content type third in the `Elements` menu group, after the content types with `sortOrder` values of 10 and 20. |
72
72
|`translate`| Identifies the attribute you want Magento to translate. Here, the `label` value is set for translation. |
73
73
74
74
## The `children` element
@@ -87,7 +87,7 @@ The `parents` element determines if other content types can be a parent to your
87
87
88
88
```xml
89
89
<parentsdefault_policy="deny">
90
-
<parentname="column"policy="allow"/>
90
+
<parentname="column"policy="allow"/>
91
91
</parents>
92
92
```
93
93
@@ -103,10 +103,10 @@ Each of these views is defined as an `appearance` within the Banner configuratio
You don't have to extend `Preview` this way, but if you do, you get access to both its public and protected functions. In our Quote example, we need access to one protected function, discussed next.
@@ -141,24 +141,24 @@ To do this, we need to override the protected `retrieveOptions()` function from
0 commit comments