IMPORTANT: This version of Sitefinity CMS is out of support and the respective product documentation is no longer maintained and can be outdated. Use the version selector to view a supported product version.
This tutorial demonstrates how to add a News selector in a Feather widget's designer view.
PREREQUISITES: You created at least one News item, so that the selector can use it. For more information, see News.
DesignerView.YourView.json
JSON
scripts
NOTE: For more information on scripts that you must load, see Feather: List of selectors scripts reference.
designerview-<yourview>.js
.js
DesignerView.<YourView>.cshtml
You can use the sf-selected-item and sf-selected-item-id attributes to access the selected value. The values of the attributes are scope properties that you must added in your widgets controller:
sf-selected-item
sf-selected-item-id
If you enabled multiple selection of items, you must use the sf-selected-items and sf-selected-ids attributes.
sf-selected-items
sf-selected-ids
For more information on multiple selection of items, see Feather: Use multiple items selectors.
To select which provider you want to work with, use the sf-provider attribute. The attribute value must be a property in your scope that contains the name of the provider.
sf-provider
Back To Top
To submit feedback, please update your cookie settings and allow the usage of Functional cookies.
Your feedback about this content is important