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: 13/umbraco-cms/extending/health-check/guides/fixedapplicationurl.md
+7-5Lines changed: 7 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,7 @@
1
-
# Health check: Fixed Application URL
2
-
3
-
_Check to make sure a fixed application URL is specified. This URL is for example used when sending emails from backoffice.
4
-
If this is not specified in configuration, Umbraco gets the application URL from last host used to request the application_
1
+
# Fixed Application Url
5
2
3
+
_Check to make sure a fixed application URL is specified. This URL is for example used when sending emails from backoffice._\
4
+
_If this is not specified in configuration, Umbraco gets the application URL from last host used to request the application_
6
5
7
6
## How to fix this health check
8
7
@@ -39,4 +38,7 @@ One example that can be used in production
39
38
}
40
39
}
41
40
```
42
-
{% hint style="info" %} If the site is hosted on Umbraco Cloud, changing the above configuration will have no effect. The site will always use the URL set in the`umbraco-cloud.json` file, which can not be changed. {% endhint %}
41
+
42
+
{% hint style="info" %}
43
+
If the site is hosted on Umbraco Cloud, changing the above configuration will have no effect. The site will always use the URL set in the\`umbraco-cloud.json\` file, which can not be changed.
Copy file name to clipboardExpand all lines: 13/umbraco-cms/extending/property-editors/declaring-your-property-editor.md
+30-30Lines changed: 30 additions & 30 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,25 +4,25 @@ Generally Umbraco supports two different ways to declare a property editor. Most
4
4
5
5
A property editor consists of a number of mandatory properties, and some optional ones as well. As such, the outer JSON object for the property editor has the following properties:
6
6
7
-
| Name | Type | Required | Description |
8
-
| ---- | ---- | ---- | ---- |
9
-
|`alias`| string | Yes | A unique alias that identifies the property editor. |
10
-
|`name`| string | Yes | The friendly name of the property editor, shown in the Umbraco backoffice. |
11
-
|`editor`| object | Yes | This describes details about the editor. See the table below for further information. |
12
-
|`icon`| string | No | A CSS class for the icon to be used in the **Select Editor** dialog - eg: `icon-autofill`. |
13
-
|`group`| string | No | The group to place this editor in within the **Select Editor** dialog. Use a new group name or alternatively use an existing one such as **Pickers**. |
14
-
|`isParameterEditor`| boolean | No | Enables the property editor as a macro parameter editor. Can be either `true` or `false` (default). |
15
-
|`defaultConfig`| object | No | Provides a collection of default configuration values, in cases the property editor is not configured or is used a parameter editor (which doesn't allow configuration). The object is a key/value collection and must match the prevalue fields keys. |
|`alias`| string | Yes | A unique alias that identifies the property editor.|
10
+
|`name`| string | Yes | The friendly name of the property editor, shown in the Umbraco backoffice.|
11
+
|`editor`| object | Yes | This describes details about the editor. See the table below for further information.|
12
+
|`icon`| string | No | A CSS class for the icon to be used in the **Select Editor** dialog - eg: `icon-autofill`.|
13
+
|`group`| string | No | The group to place this editor in within the **Select Editor** dialog. Use a new group name or alternatively use an existing one such as **Pickers**.|
14
+
|`isParameterEditor`| boolean | No | Enables the property editor as a macro parameter editor. Can be either `true` or `false` (default).|
15
+
|`defaultConfig`| object | No| Provides a collection of default configuration values, in cases the property editor is not configured or is used a parameter editor (which doesn't allow configuration). The object is a key/value collection and must match the prevalue fields keys. |
16
16
17
17
The `editor` object then has the following properties:
18
18
19
-
| Name | Type | Required | Description |
20
-
| ---- | ---- | ---- | ---- |
21
-
|`view`| string | Yes | This is the full path to the HTML view for your property editor. |
22
-
|`hideLabel`| bool | Yes | If set to `true`, this hides the label for the property editor when used in Umbraco on a Document Type. |
23
-
|`valueType`| object | No | This is the type of data you want your property editor to save to Umbraco. Possible values are `STRING`, `JSON`, `DATETIME`, `TEXT` and `INT`. Default is `STRING`. |
24
-
|`validation`| object | No | Object describing required validators on the editor. |
25
-
|`isReadOnly`| boolean | No | If set to true this makes the property editor read only. |
|`view`| string | Yes | This is the full path to the HTML view for your property editor.|
22
+
|`hideLabel`| bool | Yes | If set to `true`, this hides the label for the property editor when used in Umbraco on a Document Type.|
23
+
|`valueType`| object | No| This is the type of data you want your property editor to save to Umbraco. Possible values are `STRING`, `JSON`, `DATETIME`, `TEXT` and `INT`. Default is `STRING`. |
24
+
|`validation`| object | No | Object describing required validators on the editor.|
25
+
|`isReadOnly`| boolean | No | If set to true this makes the property editor read only.|
26
26
27
27
## Using a Package Manifest
28
28
@@ -157,23 +157,23 @@ Also notice how the `PropertyEditorAsset` attribute is used to load the `SirTrev
157
157
158
158
The [DataEditor](https://apidocs.umbraco.com/v13/csharp/api/Umbraco.Cms.Core.PropertyEditors.DataEditorAttribute.html) attribute shown in the example above is the primary component to declaring the property editor in C#. Notice that the first four properties must be set through the constructor.
|`Alias`| string | Yes | Gets the unique alias of the editor.|
163
163
|`EditorType`|[EditorType](https://apidocs.umbraco.com/v13/csharp/api/Umbraco.Cms.Core.PropertyEditors.EditorType.html)| Yes | Gets the type of the editor. Possible values are `EditorType.PropertyValue`, `EditorType.MacroParameter` or `EditorType.Nothing`. |
164
-
|`Name`| string | Yes | Gets the friendly name of the editor. |
165
-
|`View`| string | Yes | Gets the view to use to render the editor. |
166
-
|`ValueType`| string | No | Gets or sets the type of the edited value. |
167
-
|`HideLabel`| boolean | No | Gets or sets a value indicating whether the editor should be displayed without its label. |
168
-
|`Icon`| string | No | Gets or sets an optional icon. |
169
-
|`Group`| string | No | Gets or sets an optional group. |
170
-
|`IsDeprecated`| boolean | No | Gets or sets a value indicating whether the value editor is deprecated. |
164
+
|`Name`| string | Yes | Gets the friendly name of the editor.|
165
+
|`View`| string | Yes | Gets the view to use to render the editor.|
166
+
|`ValueType`| string | No | Gets or sets the type of the edited value.|
167
+
|`HideLabel`| boolean | No | Gets or sets a value indicating whether the editor should be displayed without its label.|
168
+
|`Icon`| string | No | Gets or sets an optional icon.|
169
+
|`Group`| string | No | Gets or sets an optional group.|
170
+
|`IsDeprecated`| boolean | No | Gets or sets a value indicating whether the value editor is deprecated.|
171
171
172
172
### PropertyEditorAsset attribute
173
173
174
174
As shown in the C# example, the [PropertyEditorAsset](https://apidocs.umbraco.com/v13/csharp/api/Umbraco.Cms.Infrastructure.WebAssets.PropertyEditorAssetAttribute.html) attribute was used to make Umbraco load the specified JavaScript file.
175
175
176
-
The constructor of the attribute takes the type of the assets as the first parameter.
176
+
The constructor of the attribute takes the type of the assets as the first parameter.\
177
177
Possible values are either `AssetType.Javascript` or `AssetType.Css`. The second parameter is the URL of the asset.
178
178
179
179
### DataEditor class
@@ -285,13 +285,13 @@ A benefit of this approach (opposed to `package.manifest` files) is that we can
285
285
}
286
286
```
287
287
288
-
Both instances of `IDataType` and `PublishedDataType` have a `Configuration` property.
289
-
When looking across all data types and property editors, there is no common type for the configuration, so the return value is `object`.
288
+
Both instances of `IDataType` and `PublishedDataType` have a `Configuration` property.\
289
+
When looking across all data types and property editors, there is no common type for the configuration, so the return value is `object`.\
290
290
To get the strongly typed model, you can either cast the configuration value on your own, or use the generic `ConfigurationAs` extension method as shown above.
291
291
292
292
Like mentioned before, the `SirTrevorConfigurationEditor` class doesn't really do much in this example with the Sir Trevor property editor. But the **Multi Node Tree Picker** and others of Umbraco's build in property editors also override the `ToValueEditor` method.
293
293
294
-
This method is used when the strongly typed configuration value is converted to the model used by the Angular logic in the backoffice. So with the implementation of the [MultiNodePickerConfigurationEditor](https://github.com/umbraco/Umbraco-CMS/blob/ade9bb73246caf25a7073f2b9e5262641a201863/src/Umbraco.Web/PropertyEditors/MultiNodePickerConfigurationEditor.cs) class, some additional configuration fields are sent along. For instance that it's a multi picker and that the ID type should be URI's. These are configuration values that the user should not be able to edit, but the property editor may still rely on them.
294
+
This method is used when the strongly typed configuration value is converted to the model used by the Angular logic in the backoffice. So with the implementation of the [MultiNodePickerConfigurationEditor](https://github.com/umbraco/Umbraco-CMS/blob/ade9bb73246caf25a7073f2b9e5262641a201863/src/Umbraco.Web/PropertyEditors/MultiNodePickerConfigurationEditor.cs) class, some additional configuration fields are sent along. For instance that it's a multi picker and that the ID type should be URI's. These are configuration values that the user should not be able to edit, but the property editor may still rely on them.
ThecurrentimplementationofXPathissuboptimal, markedasobsolete, andscheduledfor removal in Umbraco 14. The replacement for ContentXPath is [IContentLastChanceFinder](../../implementation/custom-routing/README.md#last-chance-icontentfinder).
0 commit comments