MrSnoozles Posted October 12, 2023 Share Posted October 12, 2023 Hey, so I have a website with three languages: - Swedish (default) - English - French I would now like to publish some research result in English only and not translate it into Swedish and French. I'd still like to link to it from the Swedish and French versions though. How would you do this with ProcessWire? Spoiler Some additional information: What I would probably like to happen is: - When clicking on the Swedish or French version they should display the content filled in the English version - a canonical indicates the correct url (the English version) How it could be solved (but doesn't feel like a good solution): - add a select-field to the template where the user can choose one of a language if it's a single-language site - when a page has a value in thatfield a hook handles the loading of the correct language. e.g. when we're visiting the Swedish website and in the field is selected that the language is english, that hook will make the page load the English content instead of the (empty) Swedish Link to comment Share on other sites More sharing options...
MrSnoozles Posted October 20, 2023 Author Share Posted October 20, 2023 Is pushing allowed? ? I do not necessarily seek a definite solution, but rather a discussion on how you would solve this with ProcessWire. Is that maybe a limitation of the current core? Link to comment Share on other sites More sharing options...
d'Hinnisdaël Posted October 20, 2023 Share Posted October 20, 2023 As far as I can tell, this is a current limitation of the core. The default language cannot be deactivated and serves as fallback for non-translated versions. 2 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now