PWaddict Posted March 26, 2018 Share Posted March 26, 2018 How can I make the module's config value of InputfieldTextarea to be multi-language so I can get each language value on front-end? $f = $modules->get('InputfieldTextarea'); $f->name = 'test'; $f->label = __("Test"); $f->columnWidth = 100; if(isset($data['test'])) $f->value = $data['test']; Link to comment Share on other sites More sharing options...
adrian Posted March 26, 2018 Share Posted March 26, 2018 $f->useLanguages = true; 1 Link to comment Share on other sites More sharing options...
PWaddict Posted March 26, 2018 Author Share Posted March 26, 2018 Thank you @adrian but I can still see the default language value on front end even though I switched to alternate language. Link to comment Share on other sites More sharing options...
PWaddict Posted March 27, 2018 Author Share Posted March 27, 2018 I noticed that you're already did what I want to achieve on your Page Protector module and after studying your code I finally managed to display the multi-language values on the frontend. Thank you @adrian 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