Extend forms connectors definitions
If you have custom connector and you want it to have settings in the forms detail dialogs. You can achieve this using FormsConnectorDefinitionsExtender
.
Add custom controls to forms section separated for the connectors, by performing the following:
- Create your own class and implement the abstract
FormsConnectorDefinitionsExtender
.
- Use the
AddConnectorsSettings
method to attach your custom controls to the form dialogs. Use the following sample:
NOTE: Sitefinity CMS supports only the following definition elements as section fields: TextFieldDefinitionElement
, ChoiceFieldElement
, and TaxonFieldDefinitionElement
.
NOTE: FormsConnectorDefinitionsExtender.ConnectorName
and IModuleConnectionStatus.ModuleName
must be equal.
- Implement the
IModuleConnectionStatus
interface
Sitefinity CMS displays the warning Connection to [Connector Title] is not set or lost. Check your connector settings and try again when the following conditions are met:
- Your connector does not implement the
IModuleConnectionStatus
interface.
- The action callback of the
IModuleConnectionStatus.ExecuteIfConfigured
method was not executed.
To prevent showing this warning to the Sitefinity CMS user, implement the interface as the following example:
- Register your classes in the following way:
The Ordinal
property is used to sort the connectors settings.