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/customizations/product-conditions.md
+9-5Lines changed: 9 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -4,16 +4,20 @@
4
4
5
5
## What's in this topic
6
6
7
-
This topic describes how to use the product conditions rule tree for different content types. By reusing the conditions mechanism you can apply it to your own custom content types.
7
+
Out-of-the-box, product conditions can be set on Page Builder's Product content type to define which products you want to display based on a variety of product attributes. For example, if you only want display products in a category with a price greater than $50, you would setup a condition for the product as shown here:
## Add the conditions form element to the `form` UI component {#add-conditions}
30
+
## Add the conditions {#add-conditions}
27
31
28
32
To add the conditions `form` element to the `form` UI component:
29
33
@@ -60,7 +64,7 @@ To create a custom `form` data provider for the edit form:
60
64
61
65
The preceding code is an example of how to add a custom `form` data provider. Replace values with ones specific to your custom content type and component.
62
66
63
-
## Include the `conditionsDataProcessor` and attribute in the data provider {#include}
67
+
## Include the `conditionsDataProcessor` and attribute {#include}
64
68
65
69
To include the `conditionsDataProcessor` and accompanying attribute in the data provider file, `view/adminhtml/web/js/content-type/mycomponent/form/provider.js`:
Copy file name to clipboardExpand all lines: docs/customizations/visual-selects.md
+6-4Lines changed: 6 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,9 @@
6
6
7
7
This topic describes how to extend some Page Builder fields to accommodate a custom look and feel for the text alignment option.
8
8
9
-
The text alignment field for each content block, in the Advanced section, now shows an icon and title. You can customize the text alignment field to show this new look and feel for all content blocks.
9
+
In the Advanced section of the content editor, the text alignment field for each content type now shows an icon and title. You can customize the text alignment field to show this new look and feel for your custom content types.
All image formats are supported for icons, though we suggest using an SVG format.
12
14
@@ -20,7 +22,7 @@ To add Visual Select customization to a Page Builder content block:
20
22
21
23
## Override the select component with an element template {#element-template}
22
24
23
-
We use the default select component in the `/app/code/Magento/PageBuilder/view/adminhtml/ui-component/pagebuilder_base_form.xml` file. You can override the default template, specifying an element template & component for this functionality, to implement the Visual Select option.
25
+
We use the default select component in the `/app/code/Magento/PageBuilder/view/adminhtml/ui-component/pagebuilder_base_form.xml` file. You can override the default template, by specifying an element template and component for this functionality to implement the Visual Select option.
24
26
25
27
In the provided template, specify `<elementTmpl>` alongside updating the fields component to `Magento_PageBuilder/js/form/element/visual-select`:
26
28
@@ -35,7 +37,7 @@ In the provided template, specify `<elementTmpl>` alongside updating the fields
35
37
36
38
## Add Visual Select to the XML config {#xml-config}
37
39
38
-
The available options for select, `value`, `title`, `icon` and `noticeMessage`, can be provided by the PHP class that implements the `\Magento\Framework\Option\ArrayInterface` method.
40
+
The available options for select, `value`, `title`, `icon` and `noticeMessage`, can be provided by the PHP class that implements the `\Magento\Framework\Option\ArrayInterface` method.
39
41
40
42
Options should return an array with the following format:
41
43
@@ -123,7 +125,7 @@ To apply vertical alignment to a content type using the Visual Select component,
123
125
</virtualType>
124
126
```
125
127
126
-
### Add the Visual Select option in your module's form configuration file.
128
+
### Add the Visual Select option in your module's form configuration file
0 commit comments