LAPS Posted November 21, 2018 Share Posted November 21, 2018 I enabled multi-language support in my website and I am looking for a easy way to output page values (e.g. throughout an entire .php file) in a desired language without using $page->getLanguageValue('default', 'title')everytime I need to output a page value. I thought of finding a page in a given language by using something like $pages->findOne($id, ['language' => 'italian']) or setting someway a "language context". What do you thing about? How can I make that? Link to comment Share on other sites More sharing options...
AndZyk Posted November 21, 2018 Share Posted November 21, 2018 Hello @LAPS, you could change the user language. ? Regards, Andreas 1 1 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