strandoo Posted March 25, 2017 Share Posted March 25, 2017 Hello all. I'm planning a site that will include 5 languages. Processwire looks perfect for this. From what I can tell, the 'normal' behaviour is to have different urls for each language. But rather than having 5 parallel 'sites', each with a different language, my client needs to have each of the 5 languages displayed on the same page. The site is mostly in english, but news posts will be multi-lingual and appear together on one page, one after another. Is this possible? Does anyone have any suggestions for the best way to achieve this? Thanks in advance. Link to comment Share on other sites More sharing options...
ukyo Posted March 25, 2017 Share Posted March 25, 2017 You can get language value for each language field by using $page->getLanguageValue(language, field); foreach($languages as $language) echo $language->name, " : " , $page->getLanguageValue($language, 'title') , "<br/>" 1 Link to comment Share on other sites More sharing options...
strandoo Posted March 25, 2017 Author Share Posted March 25, 2017 Thanks ukyo, that was quick! That looks pretty straightforward and it makes perfect sense. I'll give it a shot. 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