From 8d77bb68d4369d78c995e89370ae73a3b62a06fb Mon Sep 17 00:00:00 2001 From: Esha Noronha Date: Mon, 18 Mar 2024 15:50:01 +0100 Subject: [PATCH 1/3] Clarified text --- 13/umbraco-forms/developer/extending/adding-a-fieldtype.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/13/umbraco-forms/developer/extending/adding-a-fieldtype.md b/13/umbraco-forms/developer/extending/adding-a-fieldtype.md index da695f7471d..147e16b3f1b 100644 --- a/13/umbraco-forms/developer/extending/adding-a-fieldtype.md +++ b/13/umbraco-forms/developer/extending/adding-a-fieldtype.md @@ -120,7 +120,7 @@ The final step involves building the HTML view which will be rendered in Umbraco In the HTML you can access settings via `field.settings`, e.g. `{{field.settings.Caption}}` to render a "Caption" setting. It is also possible to access prevalues via `field.parsedPreValues`. -For built-in field types, Umbraco Forms look for this file in the virtual folder: `App_Plugins\UmbracoForms\backoffice\Common\FieldTypes\`. It will expect to find a file with a name matching the class's name, i.e. `mycustomfield.html`. +For built-in field types, Umbraco Forms look for this file in the virtual folder: `App_Plugins\UmbracoForms\backoffice\Common\FieldTypes\`. It will expect to find a file with a name matching the class's name, i.e. `mycustomfield.html`. To add custom fields and themes, create a folder at the specified path, also known as the virtual folder. This is because the client-side code is included in the Razor Class Library. As a result, these files are available as if they're stored at a specific location on disk. To store in a different location, you can apply the following override to the custom field type's C# representation: From 626839d554df2077ac5ab5a05dfa374e67760999 Mon Sep 17 00:00:00 2001 From: Esha Noronha <82437098+eshanrnh@users.noreply.github.com> Date: Tue, 19 Mar 2024 11:41:29 +0100 Subject: [PATCH 2/3] Update 13/umbraco-forms/developer/extending/adding-a-fieldtype.md Co-authored-by: Alina-Magdalena Tincas <83591955+alina-tincas@users.noreply.github.com> --- 13/umbraco-forms/developer/extending/adding-a-fieldtype.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/13/umbraco-forms/developer/extending/adding-a-fieldtype.md b/13/umbraco-forms/developer/extending/adding-a-fieldtype.md index 147e16b3f1b..424abd7abb1 100644 --- a/13/umbraco-forms/developer/extending/adding-a-fieldtype.md +++ b/13/umbraco-forms/developer/extending/adding-a-fieldtype.md @@ -120,7 +120,7 @@ The final step involves building the HTML view which will be rendered in Umbraco In the HTML you can access settings via `field.settings`, e.g. `{{field.settings.Caption}}` to render a "Caption" setting. It is also possible to access prevalues via `field.parsedPreValues`. -For built-in field types, Umbraco Forms look for this file in the virtual folder: `App_Plugins\UmbracoForms\backoffice\Common\FieldTypes\`. It will expect to find a file with a name matching the class's name, i.e. `mycustomfield.html`. To add custom fields and themes, create a folder at the specified path, also known as the virtual folder. This is because the client-side code is included in the Razor Class Library. As a result, these files are available as if they're stored at a specific location on disk. +For built-in field types, Umbraco Forms look for this file in the virtual folder: `App_Plugins\UmbracoForms\backoffice\Common\FieldTypes\`. It will expect to find a file with a name matching the class's name, i.e. `mycustomfield.html`. To add custom fields and themes, **create a folder at the specified path** (also known as the virtual folder). This is because the client-side code is included in the Razor Class Library. As a result, these files are available as if they're stored at a specific location on disk. To store in a different location, you can apply the following override to the custom field type's C# representation: From 402fae8cdc8b8d1508efa05985b3f9a69dd3cf36 Mon Sep 17 00:00:00 2001 From: Esha Noronha Date: Tue, 19 Mar 2024 11:44:09 +0100 Subject: [PATCH 3/3] Added text for v10 and v12 --- 10/umbraco-forms/developer/extending/adding-a-fieldtype.md | 2 +- 12/umbraco-forms/developer/extending/adding-a-fieldtype.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/10/umbraco-forms/developer/extending/adding-a-fieldtype.md b/10/umbraco-forms/developer/extending/adding-a-fieldtype.md index 1716a8459db..a16af90542d 100644 --- a/10/umbraco-forms/developer/extending/adding-a-fieldtype.md +++ b/10/umbraco-forms/developer/extending/adding-a-fieldtype.md @@ -121,7 +121,7 @@ The final step involves building the HTML view which will be rendered in Umbraco In the HTML you can access settings via `field.settings`, e.g. `{{field.settings.Caption}}` to render a "Caption" setting. It is also possible to access prevalues via `field.parsedPreValues`. -For built-in field types, Umbraco Forms look for this file in the virtual folder: `App_Plugins\UmbracoForms\backoffice\Common\FieldTypes\`. It will expect to find a file with a name matching the class's name, i.e. `mycustomfield.html`. +For built-in field types, Umbraco Forms look for this file in the virtual folder: `App_Plugins\UmbracoForms\backoffice\Common\FieldTypes\`. It will expect to find a file with a name matching the class's name, i.e. `mycustomfield.html`. To add custom fields and themes, **create a folder at the specified path** (also known as the virtual folder). This is because the client-side code is included in the Razor Class Library. As a result, these files are available as if they're stored at a specific location on disk. To store in a different location, you can apply the following override to the custom field type's C# representation: diff --git a/12/umbraco-forms/developer/extending/adding-a-fieldtype.md b/12/umbraco-forms/developer/extending/adding-a-fieldtype.md index da695f7471d..424abd7abb1 100644 --- a/12/umbraco-forms/developer/extending/adding-a-fieldtype.md +++ b/12/umbraco-forms/developer/extending/adding-a-fieldtype.md @@ -120,7 +120,7 @@ The final step involves building the HTML view which will be rendered in Umbraco In the HTML you can access settings via `field.settings`, e.g. `{{field.settings.Caption}}` to render a "Caption" setting. It is also possible to access prevalues via `field.parsedPreValues`. -For built-in field types, Umbraco Forms look for this file in the virtual folder: `App_Plugins\UmbracoForms\backoffice\Common\FieldTypes\`. It will expect to find a file with a name matching the class's name, i.e. `mycustomfield.html`. +For built-in field types, Umbraco Forms look for this file in the virtual folder: `App_Plugins\UmbracoForms\backoffice\Common\FieldTypes\`. It will expect to find a file with a name matching the class's name, i.e. `mycustomfield.html`. To add custom fields and themes, **create a folder at the specified path** (also known as the virtual folder). This is because the client-side code is included in the Razor Class Library. As a result, these files are available as if they're stored at a specific location on disk. To store in a different location, you can apply the following override to the custom field type's C# representation: