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: 16/umbraco-cms/customizing/extending-overview/extension-types/property-value-preset.md
+8-4Lines changed: 8 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,8 +38,8 @@ This API will set the value to "Hello there" for all properties using the `Umb.P
38
38
39
39
### Target a Property Editor Schema
40
40
41
-
You can also choose to target your Preset for a Property Editor Schema.\
42
-
\
41
+
You can also choose to target your Preset for a Property Editor Schema.
42
+
43
43
Define `forPropertyEditorSchemaAlias` to show the Preset Value for all Properties based on that Schema.
44
44
45
45
If both `forPropertyEditorSchemaAlias` and `forPropertyEditorUiAlias` are defined, it will not limit the target. The matching is independently for each of them.
@@ -48,7 +48,11 @@ Notice that `forPropertyEditorSchemaAlias` only targets the Properties used on t
48
48
49
49
## Utilize the Data-Type configuration
50
50
51
-
The `processValue` method takes two arguments, the current value of the Preset and the Data-Type Configuration.
51
+
The `processValue` method takes four arguments:
52
+
- The current value.
53
+
- The Data Type configuration.
54
+
- The type arguments, which contains details such as whether the property is mandatory, and how it varies by culture and segment.
55
+
- The call arguments, which contains details about the property and document.
52
56
53
57
The following example is the built-in Property Value Preset for the Umbraco Toggle. The Toggle Data Type has a 'preset state' configuration that is used as the value of the Toggle.
54
58
@@ -57,7 +61,7 @@ The following example is the built-in Property Value Preset for the Umbraco Togg
0 commit comments