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/step-1-add-configuration.md
+3-4Lines changed: 3 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ The configuration file gives your content type its existence. It's where you set
11
11
12
12
The file name should reflect the name of your content type. Use underscores to separate multi-word names as needed.
13
13
14
-
## Example
14
+
## Example configuration
15
15
16
16
{: .bs-callout .bs-callout-info }
17
17
Only a subset of configuration elements are described in this example (enough to understand the configuration file's role within a content type). For more details, refer to [Main configurations](../configurations/content-type-configuration.md) and [Additional configurations](../configurations/additional-configurations.md).
@@ -51,7 +51,6 @@ The following configuration shows the minimal requirements for defining a conten
@@ -74,7 +73,7 @@ The `<type>` node defines the key properties of your content type. The attribute
74
73
| component | Currently there are two component types to choose from: `content-type` and `content-type-collection`. Use `Magento_PageBuilder/js/content-type` for static content types that do not have children. Use `Magento_PageBuilder/js/content-type-collection` for content types that can contain children, otherwise known as container content types. |
75
74
| preview_component | JavaScript file that provides preview-specific rendering logic within the Admin UI. |
76
75
| master_component | JavaScript file that provides master format rendering logic generic for all appearances of your content type when rendered on the storefront. |
77
-
| form | UI component form that provides the editor for your content type. |
76
+
| form | UI component form that provides the form controls for editing your content type. |
78
77
| icon | Optional. PNG or SVG image displayed in the Page Builder panel alongside the label. |
79
78
| is_hideable | Optional. Default `true`. Include it only when you want to set it to `false` to prevent the end-user from hiding your content type on demand, using a button (eye icon) in the options menu. A setting of false will remove the hide button from the options menu. |
80
79
| translate | Identifies the attribute you want Magento to translate. Here, the `label` value is set for translation. |
@@ -99,7 +98,7 @@ All content types must have at least one `<appearance>` defined within the `<app
99
98
100
99
## The `elements` node
101
100
102
-
The purpose of `<elements>` node in the configuration is to map the data from the editor to the content type's master format so that the values entered in the editor can be stored and rendered correctly within both the Admin preview and the storefront. These nodes will be explained more fully in Step 4: Add editor.
101
+
The purpose of `<elements>` node in the configuration is to map the data from the form to the content type's master format so that the values entered in the editor can be stored and rendered correctly within both the Admin preview and the storefront. These nodes will be explained more fully in Step 4: Add editor.
Copy file name to clipboardExpand all lines: docs/create-basic-content-type/step-4-add-form.md
+7-9Lines changed: 7 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,28 +1,28 @@
1
-
# Step 4: Add editor
1
+
# Step 4: Add form
2
2
3
3
{: .bs-callout .bs-callout-info }
4
4
The development of this tutorial is currently **IN PROGRESS**.
5
5
6
-
Page Builder provides an editor that slides out from the right of the screen within the Admin UI to give users a way to add content and customize the appearance of your content type, as shown in the screen shot. All you have to do is create a UI component form and a layout for the editor to use.
6
+
Page Builder provides an editor that slides out from the right of the screen within the Admin UI to give you a way to add content and customize the appearance of your content type, as shown in the screen shot. To use and customize this editor for your needs, you need to create a UI component form along with the layout to display that form.
In this example, we create a form that extends `pagebuilder_base_form` to provide a basic form editor for our content type. The code is provided here followed by descriptions of the key parts.
39
+
In this example, let's create a form that extends `pagebuilder_base_form` to provide form controls for editing our content type. The code is provided here followed by descriptions of the key parts.
42
40
43
41
```xml
44
42
<?xml version="1.0" encoding="UTF-8"?>
@@ -181,7 +179,7 @@ In this example, we create a form that extends `pagebuilder_base_form` to provid
0 commit comments