Use the Language selector widget sample to create a language selector widget, which you can use to switch between different language versions of a page
This sample shows how two widgets can communicate with each other in the early stage of the pipeline.
NOTE: The instructions in this sample use Visual Studio 2022 and a Sitefinity renderer project named Renderer.
Under your Renderer project, you must create the following folders:
Entities
LanguageSelector
Models
ViewModels
ViewComponents
Views
Shared
Components
Entities/LanguageSelector
Models/LanguageSelector
ViewModels/LanguageSelector
Views/Shared/Components/LanguageSelector
Build your solution.
When you open your Renderer application and open the New editor, you will see the Language selector widget in the widget selector.
Renderer
This sample is available in Sitefinity’s GitHub repository. You can run and play with it. To do this, perform the following:
sitefinity-aspnetcore-mvc-samples-master/src/language-selector
language-selector.sln
appsettings.json
“Sitefinity”
“Url”
language-selector
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