Feather's sfFlatTaxonField directive enables you to select and create taxa by typing their name in a text box. When you type a taxon's name, it is added next to other selected taxa. You can remove any selected taxa by clicking on their X button or by pressing Backspace on your keyboard. If you type a name of a taxon that does nt exist, it is automatically created in Sitefinity.
The following example demonstrates how to add a generic tree directive in a widget designer's view.
Feather automatically registers the scripts you need and, if no other designer view with explicitly set priority exists, Feather sets your designer view priority 1. In case you need to have full control over the scripts that are loaded or you want to set custom priority, you can alternatively create your own DesignerView.YourView.json file. If you have a JSON file that matches the convention (even if empty), this automatic scripts registration will not occur. In the DesignerView.YourView.json file, add the path to the following files located in the scripts array:
"components" : ["sf-flat-taxon-field"]
Feather automatically finds all AngularJS modules you rely on and references the widget designer to them. In case you rely on custom AngularJS modules or have logic that needs an AngularJS controller, you can create your own designerview-<yourview>.js file. If you have a .js file that matches the convention (even if empty), this automatic modules referencing will not occur. In your designerview-yourview.js file, right before the definition of your custom view controller, place the following code snippet:
designerModule = angular.module(
In your DesignerView.YourView.cshtml file, place the following tag where you want to render the sfFlatTaxonField directive:
Back To Top