The following tutorial demonstrates how to add a Multisite page selector in your widget's designer. You use this selector to select different pages, based on the sites and available languages defined in your Sitefinity CMS application. For more information on basic page selector, see Page selector.
To add a Multisite page selector, in your DesignerView.<YourView>.cshtml file, place the following tag where you want to render the selector:
DesignerView.<YourView>.cshtml
NOTE: The dropdown menu for the culture is automatically populated with the cultures available for the currently selected site. If Sitefinity CMS is in single site mode, the site dropdown menu is not rendered.
The values of the attributes are scope properties that you define in the MVC widget controller.
To access the selected value, you use the sf-selected-item and the 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
To specify which site and culture are selected by default, use the sf-site and sf-culture attributes. The attribute values are updated as soon as the user selects a different site or culture from the dropdown menus.
sf-site
sf-culture
Increase your Sitefinity skills by signing up for our free trainings. Get Sitefinity-certified at Progress Education Community to boost your credentials.
This free lesson teaches administrators, marketers, and other business professionals how to use the Integration hub service to create automated workflows between Sitefinity and other business systems.
This free lesson teaches administrators the basics about protecting yor Sitefinity instance and its sites from external threats. Configure HTTPS, SSL, allow lists for trusted sites, and cookie security, among others.
The free on-demand video course teaches developers how to use Sitefinity .NET Core and leverage its decoupled architecture and new way of coding against the platform.
To submit feedback, please update your cookie settings and allow the usage of Functional cookies.
Your feedback about this content is important