So I have section of the site where I want all my user to go to US version of page, because we dont have translations yet for all the languages.
How could I send all the users of different languages to US version ? For every language version we have language in URL ie..
us/pagename mx/pagename ca/pagename
Would language fallback solve this problem for you? You have two options:
I like the idea of the Language Fallback Provider, which basically makes any field that doesn't have a value in a certain language, fallback to another (e.g. English).
Another option is to create a custom HttpRequest
pipeline processor near the LanguageResolver
to look for items in that section of the site and resolve English for them:
HttpRequestProcessor
public override void Process(HttpRequestArgs args)
with code to check if you're in that section of the site, and if so, set the Context.Language
to English.This is just an idea, I have not tried it. If you want to see how the current LanguageResolver
works, decompile Sitecore.Kernel
with ILSpy and look at Sitecore.Pipelines.HttpRequest.LanguageResolver