The following tutorial demonstrates how to add a Language selector in your widget's designer. You use the Language selector to select different cultures, defined in your Sitefinity CMS application.
DesignerView.YourView.json
JSON
DesignerView.<YourView>.json
scripts
For more information on the scripts that you must load, see List of selectors scripts reference.
designerview-<yourview>.js
.js
DesignerView.<YourView>.cshtml
NOTE: You must use the sf-site attribute with the Language selector.
sf-site
To load the culture for a specific site, you use the sf-site attribute. You can use the optional attribute sf-culture to access the selected culture. The value of these attributes are scope properties -sfCulture and sfSite - that you must add in your widget's controller:
sf-culture
sfCulture
sfSite
NOTE: If you do not supply an sfSite attribute value, the Language selector is not rendered .
You can combine The Language selector to work alongside the Site selector to display the selected site's available cultures.
The sf-site attribute has the following structure of the JSON properties:
The sf-culture attribute has the following structure of the JSON properties:
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