I’m wondering if it is possible to have a top-level homepage that would list all the translations available? The user would then be able to choose which language they would like and click through to the regular homepage for that language.
If you want to display text on the home page and always have it in e.g. English you can simply use that language as a fallback languages and not create any translations.
The alternative would be an overlay, because you probably don’t want to show the language selector each time the visitor visits the page, but store this selection in a cookie?
Thanks a lot for your fantastic suggestions! Will definitely be using the homepage and domain advice How would I be able to set a cookie to remember the chosen translation?
Or would there be somewhere where I could see an example of this? I have looked through the docs, cookbook, and forums, but can’t seem to find many examples of this.
Basically, you need the Cookie::set() method to set the cookie, and the Cookie::get() method to retrieve the cookie, that all there is to it apart from the options (expiry etc.).
Setting a cookie with the key mycookie and value hello with a lifetime of 60 minutes: