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 User selector in a widget's designer view. For more information about users in Sitefinity CMS, see Overview: Users.
PREREQUISITES: To use the selector, must have at least one user created. For more information, see Administration: Create and delete users.
DesignerView.YourView.json
JSON
DesignerView.<YourView>.json
scripts
NOTE: For more information on the scripts that you must load, see Feather: List of selectors scripts reference.
designerview-<yourview>.js
.js
DesignerView.<YourView>.cshtml
To access the selected value, you use the sf-selected-item and sf-selected-item-id attributes. The values of the attributes are scope properties that you must add 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. For more information on multiple selection of items, see Feather: Use multiple content items selectors.
sf-selected-items
sf-selected-ids
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