06.
More about List Field Types
Keep on Learning!
If you liked what you've learned so far, dive in! Subscribe to get access to this tutorial plus video, code and script downloads.
If you liked what you've learned so far, dive in! Subscribe to get access to this tutorial plus video, code and script downloads.
Whoops, an error! Please, try again later.
4 Comments
I have a special question does an easy solution exist to add the value "Is scientist?" in different languages (e.g. English, French...) in the config.yml
- { property: 'isScientist', label: 'Is scientist?', type: 'boolean' }
Hey Sven,
Yes, form labels are translated by Symfony by default, so you just need to use a translation key for the label instead. And as far as your translation key is translated into different languages - you will see the translation to the current language instead of the translation key. In other words, try to replace that label with a translation key, something like "form_label.is_scientist" and translate this key to different languages you're using in your application.
Cheers!
How I can add sortting to virtual field?
Hi Andrzej S.!
Unfortunately, this is not possible :/. https://github.com/javiereg... It makes sense, as EasyAdminBundle wouldn't know how to sort it, but in theory, it certainly *could* work by requiring you to pass in some DQL to execute for the sorting. But, it's not a feature currently. This is a case where the EasyAdminBundle is easy, but cannot to everything :/.
Cheers!
"Houston: no signs of life"
Start the conversation!