From 32794c3756667fa36c3aeb1855c2714c67a9cbf6 Mon Sep 17 00:00:00 2001 From: Erik-Jan Westendorp Date: Mon, 8 Jul 2024 16:09:51 +0200 Subject: [PATCH 1/6] Add note --- .../built-in-umbraco-property-editors/multinode-treepicker.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/13/umbraco-cms/fundamentals/backoffice/property-editors/built-in-umbraco-property-editors/multinode-treepicker.md b/13/umbraco-cms/fundamentals/backoffice/property-editors/built-in-umbraco-property-editors/multinode-treepicker.md index 292716f2bda..386ba862bb4 100644 --- a/13/umbraco-cms/fundamentals/backoffice/property-editors/built-in-umbraco-property-editors/multinode-treepicker.md +++ b/13/umbraco-cms/fundamentals/backoffice/property-editors/built-in-umbraco-property-editors/multinode-treepicker.md @@ -196,6 +196,10 @@ When opening the picker on the `Umbraco anno MMXXIII` node, it will now show the See the example below to see how a value can be added or changed programmatically. To update a value of a property editor you need the [Content Service](../../../../reference/management/services/contentservice/). +:::note +The example below demonstrates how to add values programmatically using a Razor view. However, this is used for illustrative purposes only and is not the recommended method for production environments. +::: + ```csharp @inject IContentService Services; @using Umbraco.Cms.Core; From f561acfc11d14bdfc96ef6b74822d1017012227e Mon Sep 17 00:00:00 2001 From: Erik-Jan Westendorp Date: Mon, 8 Jul 2024 16:12:51 +0200 Subject: [PATCH 2/6] Update v10, 12 and 14 --- .../built-in-umbraco-property-editors/multinode-treepicker.md | 4 ++++ .../built-in-umbraco-property-editors/multinode-treepicker.md | 4 ++++ .../built-in-umbraco-property-editors/multinode-treepicker.md | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/10/umbraco-cms/fundamentals/backoffice/property-editors/built-in-umbraco-property-editors/multinode-treepicker.md b/10/umbraco-cms/fundamentals/backoffice/property-editors/built-in-umbraco-property-editors/multinode-treepicker.md index ce89d1eea7c..9bf5f485a92 100644 --- a/10/umbraco-cms/fundamentals/backoffice/property-editors/built-in-umbraco-property-editors/multinode-treepicker.md +++ b/10/umbraco-cms/fundamentals/backoffice/property-editors/built-in-umbraco-property-editors/multinode-treepicker.md @@ -73,6 +73,10 @@ Enter `typeAlias,altTypeAlias` to only allow selecting nodes with those alias'. See the example below to see how a value can be added or changed programmatically. To update a value of a property editor you need the [Content Service](../../../../reference/management/services/contentservice/). +:::note +The example below demonstrates how to add values programmatically using a Razor view. However, this is used for illustrative purposes only and is not the recommended method for production environments. +::: + ```csharp @inject IContentService Services; @using Umbraco.Cms.Core; diff --git a/12/umbraco-cms/fundamentals/backoffice/property-editors/built-in-umbraco-property-editors/multinode-treepicker.md b/12/umbraco-cms/fundamentals/backoffice/property-editors/built-in-umbraco-property-editors/multinode-treepicker.md index 3a769031c31..d8d87695435 100644 --- a/12/umbraco-cms/fundamentals/backoffice/property-editors/built-in-umbraco-property-editors/multinode-treepicker.md +++ b/12/umbraco-cms/fundamentals/backoffice/property-editors/built-in-umbraco-property-editors/multinode-treepicker.md @@ -79,6 +79,10 @@ Enter `typeAlias,altTypeAlias` to only allow selecting nodes with those alias'. See the example below to see how a value can be added or changed programmatically. To update a value of a property editor you need the [Content Service](../../../../reference/management/services/contentservice/). +:::note +The example below demonstrates how to add values programmatically using a Razor view. However, this is used for illustrative purposes only and is not the recommended method for production environments. +::: + ```csharp @inject IContentService Services; @using Umbraco.Cms.Core; diff --git a/14/umbraco-cms/fundamentals/backoffice/property-editors/built-in-umbraco-property-editors/multinode-treepicker.md b/14/umbraco-cms/fundamentals/backoffice/property-editors/built-in-umbraco-property-editors/multinode-treepicker.md index 686cb637045..237d999e837 100644 --- a/14/umbraco-cms/fundamentals/backoffice/property-editors/built-in-umbraco-property-editors/multinode-treepicker.md +++ b/14/umbraco-cms/fundamentals/backoffice/property-editors/built-in-umbraco-property-editors/multinode-treepicker.md @@ -198,6 +198,10 @@ When opening the picker on the `Umbraco anno MMXXIII` node, it will now show the See the example below to see how a value can be added or changed programmatically. To update a value of a property editor you need the [Content Service](https://apidocs.umbraco.com/v14/csharp/api/Umbraco.Cms.Core.Services.ContentService.html). +:::note +The example below demonstrates how to add values programmatically using a Razor view. However, this is used for illustrative purposes only and is not the recommended method for production environments. +::: + ```csharp @inject IContentService Services; @using Umbraco.Cms.Core; From 2d18dd49e6b3010a15dc9e6c9c20dd4f47b3aa42 Mon Sep 17 00:00:00 2001 From: Erik-Jan Westendorp Date: Tue, 9 Jul 2024 11:26:50 +0200 Subject: [PATCH 3/6] Update 10/umbraco-cms/fundamentals/backoffice/property-editors/built-in-umbraco-property-editors/multinode-treepicker.md Co-authored-by: Esha Noronha <82437098+eshanrnh@users.noreply.github.com> --- .../built-in-umbraco-property-editors/multinode-treepicker.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/10/umbraco-cms/fundamentals/backoffice/property-editors/built-in-umbraco-property-editors/multinode-treepicker.md b/10/umbraco-cms/fundamentals/backoffice/property-editors/built-in-umbraco-property-editors/multinode-treepicker.md index 9bf5f485a92..d389aea6eac 100644 --- a/10/umbraco-cms/fundamentals/backoffice/property-editors/built-in-umbraco-property-editors/multinode-treepicker.md +++ b/10/umbraco-cms/fundamentals/backoffice/property-editors/built-in-umbraco-property-editors/multinode-treepicker.md @@ -73,9 +73,9 @@ Enter `typeAlias,altTypeAlias` to only allow selecting nodes with those alias'. See the example below to see how a value can be added or changed programmatically. To update a value of a property editor you need the [Content Service](../../../../reference/management/services/contentservice/). -:::note +{% hint style="info" %} The example below demonstrates how to add values programmatically using a Razor view. However, this is used for illustrative purposes only and is not the recommended method for production environments. -::: +{% endhint %} ```csharp @inject IContentService Services; From 40101c2273ddad0fe1967ab9eefeebb33788089d Mon Sep 17 00:00:00 2001 From: Erik-Jan Westendorp Date: Tue, 9 Jul 2024 11:27:44 +0200 Subject: [PATCH 4/6] Update 13/umbraco-cms/fundamentals/backoffice/property-editors/built-in-umbraco-property-editors/multinode-treepicker.md Co-authored-by: Esha Noronha <82437098+eshanrnh@users.noreply.github.com> --- .../built-in-umbraco-property-editors/multinode-treepicker.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/13/umbraco-cms/fundamentals/backoffice/property-editors/built-in-umbraco-property-editors/multinode-treepicker.md b/13/umbraco-cms/fundamentals/backoffice/property-editors/built-in-umbraco-property-editors/multinode-treepicker.md index 386ba862bb4..1afe0a7d778 100644 --- a/13/umbraco-cms/fundamentals/backoffice/property-editors/built-in-umbraco-property-editors/multinode-treepicker.md +++ b/13/umbraco-cms/fundamentals/backoffice/property-editors/built-in-umbraco-property-editors/multinode-treepicker.md @@ -196,9 +196,9 @@ When opening the picker on the `Umbraco anno MMXXIII` node, it will now show the See the example below to see how a value can be added or changed programmatically. To update a value of a property editor you need the [Content Service](../../../../reference/management/services/contentservice/). -:::note +{% hint style="info" %} The example below demonstrates how to add values programmatically using a Razor view. However, this is used for illustrative purposes only and is not the recommended method for production environments. -::: +{% endhint %} ```csharp @inject IContentService Services; From 5ea9c766d6162724ba149cc15f4333c6079153c1 Mon Sep 17 00:00:00 2001 From: Erik-Jan Westendorp Date: Tue, 9 Jul 2024 11:27:49 +0200 Subject: [PATCH 5/6] Update 14/umbraco-cms/fundamentals/backoffice/property-editors/built-in-umbraco-property-editors/multinode-treepicker.md Co-authored-by: Esha Noronha <82437098+eshanrnh@users.noreply.github.com> --- .../built-in-umbraco-property-editors/multinode-treepicker.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/14/umbraco-cms/fundamentals/backoffice/property-editors/built-in-umbraco-property-editors/multinode-treepicker.md b/14/umbraco-cms/fundamentals/backoffice/property-editors/built-in-umbraco-property-editors/multinode-treepicker.md index 237d999e837..f06c52b0d65 100644 --- a/14/umbraco-cms/fundamentals/backoffice/property-editors/built-in-umbraco-property-editors/multinode-treepicker.md +++ b/14/umbraco-cms/fundamentals/backoffice/property-editors/built-in-umbraco-property-editors/multinode-treepicker.md @@ -198,9 +198,9 @@ When opening the picker on the `Umbraco anno MMXXIII` node, it will now show the See the example below to see how a value can be added or changed programmatically. To update a value of a property editor you need the [Content Service](https://apidocs.umbraco.com/v14/csharp/api/Umbraco.Cms.Core.Services.ContentService.html). -:::note +{% hint style="info" %} The example below demonstrates how to add values programmatically using a Razor view. However, this is used for illustrative purposes only and is not the recommended method for production environments. -::: +{% endhint %} ```csharp @inject IContentService Services; From 2c1b421da7dea7a4b5bd3bc4f5bf64d288392aaa Mon Sep 17 00:00:00 2001 From: Erik-Jan Westendorp Date: Tue, 9 Jul 2024 11:27:57 +0200 Subject: [PATCH 6/6] Update 12/umbraco-cms/fundamentals/backoffice/property-editors/built-in-umbraco-property-editors/multinode-treepicker.md Co-authored-by: Esha Noronha <82437098+eshanrnh@users.noreply.github.com> --- .../built-in-umbraco-property-editors/multinode-treepicker.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/12/umbraco-cms/fundamentals/backoffice/property-editors/built-in-umbraco-property-editors/multinode-treepicker.md b/12/umbraco-cms/fundamentals/backoffice/property-editors/built-in-umbraco-property-editors/multinode-treepicker.md index d8d87695435..3e29dc4a841 100644 --- a/12/umbraco-cms/fundamentals/backoffice/property-editors/built-in-umbraco-property-editors/multinode-treepicker.md +++ b/12/umbraco-cms/fundamentals/backoffice/property-editors/built-in-umbraco-property-editors/multinode-treepicker.md @@ -79,9 +79,9 @@ Enter `typeAlias,altTypeAlias` to only allow selecting nodes with those alias'. See the example below to see how a value can be added or changed programmatically. To update a value of a property editor you need the [Content Service](../../../../reference/management/services/contentservice/). -:::note +{% hint style="info" %} The example below demonstrates how to add values programmatically using a Razor view. However, this is used for illustrative purposes only and is not the recommended method for production environments. -::: +{% endhint %} ```csharp @inject IContentService Services;