597 search results

…If in a website, you allow people to post images for example, this would be a problem. I created an issue in the EasyAdmin repo: https://github.com/EasyCorp/EasyAdminBundle/issues/5227 . Hopefully I was clear enough. This is the first time I do it…
…i.e. images will be outside of your document root, and so EasyAdmin won't be able to render the uploaded image correctly and you may want to tweak the default template to workaround it, i.e. do not render the image for example. I…
…Form, I can see the 'Roles' section with 'Add a new Item' and when I click on it it display whatever fields I have set in my RoleType custom form. My RoleType form class is as followed: ``` namespace App\Form\EasyAdmin; use App\Entity\Role…
Alessandro-D
Alessandro-D
Read Full Comment
…different version of it. But if it works with "bootstrap/js/dist/modal" path - great, thanks for sharing it! Yeah, EasyAdmin have some tweaks to the bootstrap defaults... just to look less "bootstrappy" and be more unique, you know. Anyway, I hope it helped! Cheers…
…all, let's double-check the template path, are you sure you have that "templates/easyAdmin/role/add.html.twig" template path? i.e. the template name "easyAdmin/role/add.html.twig" you set to that method should be in the templates/ folder. Also, make…
…an related to this CollectionField I cannot find an answer for. I have a project entity that has a OneToMany relationship with the entity Roles. In my ProjectCrudController. I have added the following: ``` CollectionField::new('roles') ->setEntryType(RoleType::class) ->setTemplatePath('easyAdmin/role/add.html.twig'). //
Alessandro-D
Alessandro-D
Read Full Comment
…good) technical reasons, EasyAdmin still grabs things directly out of a container (technically a "service locator"). Anyways, `$this->get()` was a shortcut for `$this->container->get()`, which is why the fix shared by Fabrice works. On the latest EasyAdmin (both v3 and v4), the code…
weaverryan
weaverryan
Read Full Comment
…were adding to EasyAdmin. For instance in our custom javascript we had: ``` import { Modal } from 'bootstrap'; ``` which caused the error. Probably from the beginning this should have been: ``` import { Modal } from 'bootstrap/js/dist/modal'; ``` which works fine. The theory of the EasyAdmin bootstrap modifications…
…as the avatar in the top right, or the 3 dots at the end of the row on the index page) stop working. I made sure that my project required the exact same version of Bootstrap as EasyAdmin. Could anyone shine some light onto what…
…I removed it, seems I have a problem in EasyAdmin. As below: Twig\Error\ RuntimeError in C:\Users\laltung1\Desktop\sites-prol3\vendor\easycorp\easyadmin-bundle\src\Resources\views\layout.html.twig (line 88) Here is the line 88: {% if null == ea.userMenu.avatarUrl %}
…take a look at the AssociationField. You're right, it's used "EntityType::class" behind the scene, but I suppose you will need to add more CSS classes to match the EasyAdmin render of that field. So, it might work, but I'm not sure…
…that you isolate all the logic for hiding the delete action, it's a more error proof as well, you could create another CrudQuestion controller and forget to disable the delete action there, and, it's good for learning about subscribers and EasyAdmin DTOs :) Cheers!
MolloKhan
MolloKhan
Read Full Comment
…here's the link to the specific screencast: https://symfonycasts.com/screencast/symfony-uploads/dropzone - but I'd recommend you to watch the whole tutorial to have more context around. Along with that tutorial and EasyAdmin tutorial, I believe you will solve your problem. Cheers…
…that file? that is being uploaded to my S3?... are there more ways to connect EasyAdmin with S3 to upload my documents? PS: the `->setUploadDir()` option is required for this type of fields, but it only interprets the parameters as a local path... What can…
…the "entityId" from the query. Then, just use it in the query builder to filter it out. Or, probably even better, you can leverage EasyAdmin getContext() to get the current Request object, i.e. call "$this->getContext()->getRequest()". Btw, you can even try to get…
…you need to do is to create another entity that will work as an intermediate table for your other 2 entities, you can add as many fields you want to that new entity class, and then, create an EasyAdmin CRUD controller to handle it. Cheers!
MolloKhan
MolloKhan
Read Full Comment
…probably may override some things in the source code, or even fork the EA, but it definitely won't be easy, because as you will see further, EasyAdmin put a lot of stuff in that URL, including sorting by column, search query, applied filters, etc…
…re asking if your users (not admin users) can leverage this feature to leak the data from admin - they answer is "no". Because as you might already know, EasyAdmin handles all its requests thought a single route, and if you already configured permissions, i.e…
…Questions: * how can i validate the UploadedFile mimeType? * how can i get the UploadedFile so I can resize(if it's an image)? with VichUploaderBundle i could read the $imageFile field but i am struggling to find the File using EasyAdmin imageField. Please Help:pray:
henryosim
henryosim
Read Full Comment
…my uneducated guess would be that: A) If you're building a "traditional" app that returns HTML pages, use EasyAdmin B) If you're building an API, then use ApiPlatform's react admin. So the correct admin choice sort of "follows" the type of app…
weaverryan
weaverryan
Read Full Comment