Hey,
In EasyAdmin you can't inject the Request object directly into a controller's method. You can get it from the RequestStack, or from the `$adminContext->getRequest()` (`EasyCorp\Bundle\EasyAdminBundle\Context\AdminContext`)
Cheers!
Hey,
In an EasyAdmin controller, you can inject external services by listing them to the `getSubscribedServices()` method. Like this:
```php
public static function getSubscribedServices(): array
{
return array_merge(parent::getSubscribedServices(), [
// your service FQNS
]);
}
```
Hey Klaus,
EasyAdmin relies on the Symfony Form component under the hood, so basically, you can do whatever you want as long as the Symfony Form component allows it. In this case, I think you'll need to set up an embedded form into the…
Hi,
I'm using EasyAdmin 3.x, and I'm having issues with TExtEditorField; apparently, it strip all tags that are not div or H1; I need to handle H2, H3, etc ....
I have found this solution:
```
yield TextEditorField::new('...')->setTrixEditorConfig([
'blockAttributes' => [
'default' =>…
Hi everyone,
Easyadmin is great, no doubt about it.
But...
I can't believe that there is no way to create dependent select fields, like describe here for symfony: https://symfony.com/doc/current/form/dynamic_form_modification.html#dynamic-generation-for-submitted-forms
I…
in vendor/easycorp/easyadmin-bundle/src/Resources/translations/EasyAdminBundle.de.php
->i found 'label' => 'form.emtyp_value' => 'keine Wert'
...
|
|
// ... lines 1 - 4
|
|
use App\EasyAdmin\VotesField; |
|
|
// ... lines 6 - 14
|
|
class QuestionCrudController extends AbstractCrudController |
|
{ |
|
|
// ... lines 17 - 21
|
|
public function configureFields(string $pageName): iterable |
|
{ |
|
|
// ... lines 24 - 35
|
|
yield VotesField::new('votes', 'Total Votes') |
|
|
// ... lines 37 - 55
|
|
} |
|
} |
See Code Block in Script
|
|
// ... lines 1 - 7
|
|
services: |
|
|
// ... lines 9 - 30
|
|
App\EasyAdmin\TruncateLongTextConfigurator: |
|
tags: |
|
- { name: 'ea.field_configurator', priority: -1 } |
See Code Block in Script
RIP the mobile friendly easyadmin
Why in the world javier thought removing responsive design was a good idea, I will never understand
Hi
I notice that Easy Admin has been updated since you did this tutorial, there is now no html.twig files and therefore no start point for creating the admin page which quite frankly makes it very difficult to proceed as it offers you 3…
I have project with EasyAdmin3 and i do not have logs in Symfony profiler -> logs tabs. However can clearly see it in terminal, dev server runned by symfony serve command.
I am using Easy Admin and I have plans to add a dashboard with graphs (line, bar, pie, etc.). Is there any particular library and or bundle I should use to accomplish these graphs within Easy Admin?
Thank you in advance!
Hi MolloKhan
in easy_admin.yaml:
```
form:
fields:
- { property: 'name', css_class: 'large', label: 'Product Name' }
- { property: 'product', type: 'App\Form\ProductFormType', columns: 4 }
```
and in CustomFormType:
```
class ProductsFormType extends AbstractType
{
public function buildForm(FormBuilderInterface $builder, array $options)
{
$builder->add('product', EntityType::class, array(
'class…
Hi |mention:61941|,
I totally get EasyAdmin isn't for everyone. Not sure if you use API Platform, but we shortly covered [React Admin](https://symfonycasts.com/screencast/api-platform/react-admin) there (within the context of API Platform).
Kevin
Hey |mention:85979|
Did you change EasyAdmin configuration in any way? Are those links generated by you or EasyAdmin?
Cheers!
I have the same issue with EasyAdmin, I've actually used the Composer patches plugin to patch the bundle in a couple of places where it was relying on `__toString `for object casts.
Thing is, in some applications `__toString` is not what I want, or…
I’m trying to recreate the securing EasyAdmin process from scratch - in other words I’m not using the provided project files but creating it by myself from scratch taking from this tutorial the best I can. And now I’m stuck, because you’re…
Hello
I am trying to localize the EasyAdmin, and it is going well so far. However, I have one big problem that I can not resolve. To change the title of the index page in EasyAdmin to be as I want it, I use:
```
public…
Hello,
My project is using EasyAdmin v.3.5.16 and Symfony v5.3.15. I have a description field which is a TextEditorField. I am wanting to either configure this field, add a custom type or some other solution in order to have this…
x
597