From d04c4a027bb63e99c36b0240b16a70104e312b40 Mon Sep 17 00:00:00 2001 From: Stanislav Velikov Date: Fri, 4 Oct 2019 18:04:14 +0300 Subject: [PATCH] Remove the introduction to using custom fields Add some info that customizations are not built upon the type of field you are customizing (being RelatedData, Image etc..) but you are building a field from scratch. --- custom-fields/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom-fields/README.md b/custom-fields/README.md index a8d3416e..01bdec08 100644 --- a/custom-fields/README.md +++ b/custom-fields/README.md @@ -1,6 +1,6 @@ # Custom field -When in content editing mode, content editors can modify content properties and add content relations via dedicated fields in the UI. For example, **ShortText**, **LongText**, **Number**, **Classifications**, **RelatedData**, and so on. With the Admin App, you can replace one of the default fields when creating and editing items with a custom one. In addition, you can implement a custom visualization for each custom field you create. You do this by providing a custom implementation of the [**FieldsProvider**](http://admin-app-extensions-docs.sitefinity.site/interfaces/fieldsprovider.html) interface. For each field rendered in the UI, the [**overrideField**](http://admin-app-extensions-docs.sitefinity.site/interfaces/fieldsprovider.html#overridefield) method is called. You can also provide a custom field registration for all of the fields or for a specific one. + With the Admin App, you can replace one of the default fields when creating and editing items with a custom one. The custom one builds upon FieldBase component which is the base component of of type of fields. You cannot build upon other type of fields e.g. DateField, RelatedData field, etc... . In addition, you can implement a custom visualization for each custom field you create. You do this by providing a custom implementation of the [**FieldsProvider**](http://admin-app-extensions-docs.sitefinity.site/interfaces/fieldsprovider.html) interface. For each field rendered in the UI, the [**overrideField**](http://admin-app-extensions-docs.sitefinity.site/interfaces/fieldsprovider.html#overridefield) method is called. You can also provide a custom field registration for all of the fields or for a specific one. You also need to provide an implementation of the field for both read and write actions because there may be a case when due to lack of proper permissions or because the item is locked, it cannot be edited. **NOTE:** Since these components are dynamically instantiated, you need to register them with the **entryComponents** property of the **NgModule**.