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.
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:
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