597 search results

…only. It has no nice URLs, etc. So, I would not recommend you to expose this to users just to edit their profiles. I would prefer to create a separate custom controller that will handle only this and keep the EasyAdmin help admins only. Cheers!
Inspired by this tutorial, I've written a [bundle](https://github.com/yaroslavche/easyadminlte), which provides layout (extends EasyAdmin/layout) using https://adminlte.io. It's not production ready and more like an example, which can be improved. I've faced some limitations (f.e…
yaroslavche
yaroslavche
Read Full Comment
…x/book/menu-configuration.html#css-classes - though this version of EasyAdmin is legacy and not maintained anymore, I'd recommend you upgrade to the v3/v4 version instead, and we have a screencast about the updated EasyAdmin here: https://symfonycasts.com/screencast/easyadminbundle Cheers…
Hi, believe it or not, I still haven't figured out how to resolve this issue. I have updated my symfony version to 6 and EasyAdmin 4, but I cannot seems to be able to set the twig template. In My ProjectCrudController, I have the…
Alessandro-D
Alessandro-D
Read Full Comment
Can you tell me what is u() function in TruncateLongTextConfigurator.php ? PHPOStorm show mi message: Undefined function 'u' :) And Symfony show: Attempted to call function "u" from namespace "App\EasyAdmin".
Hey Jimmeak, Thank you for your kind words about this tutorial! We're really happy you like it :) About your question, I'm not sure that will ever happen in the EasyAdmin, the main idea is that it's an admin, i.e. internal thing…
Ah good catch and nice solution! I'm not sure if there's a better solution or not - in this newer version of the code, we're purposely rendering all of the fields exactly like EasyAdmin would render them, including truncating. So, changing to DETAIL…
weaverryan
weaverryan
Read Full Comment
…? $this->createQueryBuilder('mix'); } ` For example I'm trying to reuse a QueryBuilder with this design in EasyAdmins createIndexQueryBuilder(). But EasyAdmin uses a generic 'entity' as its alias. Because I am passing parent::createIndexQueryBuilder(...) to my QueryBuilder the aliases do not match up. Is there any…
…that's an interesting question! So here's the flow: A) You use the `EntityFilter` directly from EasyAdmin - https://github.com/EasyCorp/EasyAdminBundle/blob/4.x/src/Filter/EntityFilter.php B) Internally, its form type is `EntityFilterType`: https://github.com/EasyCorp/EasyAdminBundle/blob/4.x…
weaverryan
weaverryan
Read Full Comment
Hey kwolniak! Thanks for posting your problems and some nice solutions :). My guess is that issues 2 and 3 are related: EasyAdmin (or probably more its `FileUploadType`) doesn't "see" the file upload... and so it's missing when you submit, when trying to show…
weaverryan
weaverryan
Read Full Comment
…be possible... but in practice, no, EasyAdmin isn't really meant for this. If you did do this, your users would suddenly be in the admin "layout" when going to their edit profile page - so it'll be a weird experience. Better to just build…
weaverryan
weaverryan
Read Full Comment
Hello! A little bit question please! To create "Edit Profile" page for my users (no Admin role permission). Are there any way to use EasyAdmin or it works only for Admin role? Many thanks in advance!
…issue. I have created company and user entities. I made an onetoone relationship between them. When adding a company to the database by a logged in user in easyadmin, he does not fill in the user_id field, so I cannot see the company of…
Finally! Many thanks for your great efforts! I really enjoy learning the EasyAdmin 4 course. Now, I will continue learning the other course of Symfony 6 track.
JoshuaGugun
JoshuaGugun
Read Full Comment
Hi, I manage to progress a bit. I found a very convinient file for my problem : vendor/easycorp/easyadmin-bundle/src/Resources/views/crud/new.html.twig I pasted this file's content in mapZone.html.twig. Now, I have the map and the appropriate…
…entry_script_tags('app') }} in that file supposed to add bootstrapt link since app.js already import bootstrap ? In theory, yes. But EasyAdmin also has its own Bootstrap JavaScript. What do you want to accomplish? And what does your app.js look like exactly? Cheers…
weaverryan
weaverryan
Read Full Comment
…they made that change :/. We do talk about how to work with the latest version of EasyAdmin here - https://symfonycasts.com/screencast/easyadminbundle/dashboard#note-since-version-4.0.3 (which is also in the video around 2:04). But if that still isn't…
weaverryan
weaverryan
Read Full Comment
…usual :) I have a question, i use a lot some admin librairies like Sonata Admin or more recently Easy Admin. I just saw that EasyAdmin disabled UX-turbo because of some conflicts with their body javascripts loads and so on ... https://github.com/EasyCorp/EasyAdminBundle…
Julien Quintiao
Julien Quintiao
Read Full Comment
…When creating a new Entity, EasyAdmin first checks for voters on ADMIN_USER_EDIT with a subject of `null`. My solution requires modifying both the `supports(..)` method and the `voteOnAttribute(..)` methods of the `AdminUserVoter` as so: ``` protected function supports(string $attribute, $subject): bool { // replace with…
…my lack of knowledge why i couldn't find any way to do this. As i will be using EasyAdmin as a base for all my projects i will have to come up with a custom way of handeling this. Thanks for all your suggestions…