xxxlogiatxxx Posted October 5, 2019 Share Posted October 5, 2019 How to get all possible options from the select field in current language? This code always returns me options in default language: $field = $fields->get('encyclopedia_item_type'); $options = $field->type->getOptions($field); foreach($options as $option) { echo "<option>$option->title</option>"; } I can filter them by language through PHP and use $option->title1020 instead of $option->title foreach($options as $option) { echo "<option>$option->title1020</option>"; } But i believe there is a better way Link to comment Share on other sites More sharing options...
xxxlogiatxxx Posted October 5, 2019 Author Share Posted October 5, 2019 Doesn't matter solution here: 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