597 search results

Hi Ryan, thanks for the great videos :-) Question: how do you generate a route (on a entity list page) to a easy admin menu item using the router service? >> in particular to a page that has DQL (as this isn't simply specifying the…
Hey Riccardo Previti There is a way to pass options to the Form types by using the field *type_options*, you can use it something like this (copied from the docs): ``` easy_admin: entities: Customer: class: AppBundle\Entity\Customer new: fields: - { property: 'name', icon: 'user' } …
MolloKhan
MolloKhan
Read Full Comment
…pass in a parameter to be used in a DQL filter? I thought this would be a typical use case of easy admin - and likely a useful video (but not currently covered by KNPU training). As an example: display a list of photo albums that…
…admin links are pretty links and are different from this video. I got into reading Symfony Documents and found -"The support for pretty admin URLs was introduced in EasyAdmin 4.14.0" and enabled by Default! I try to disable them and it worked but…
OjarsBluzma
OjarsBluzma
Read Full Comment
…https://symfony.com/bundles/ux-autocomplete/current/index.html - then just open up the `controller.json` in your `assets` directory and make sure that all the tom-select CSS files are set to `false` under `autoimport`. Then in EasyAdmin, just reference the type you created…
…Downloading api-platform/core (v3.3.12) - Removing symfony/uid (v7.0.8) - Removing symfony/polyfill-uuid (v1.30.0) - Removing easycorp/easyadmin-bundle (v4.10.3) - Installing symfony/serializer-pack (v1.3.0): Extracting archive - Installing symfony/orm-pack (v2.4.1): Extracting archive …
Rodrypaladin
Rodrypaladin
Read Full Comment
…yield CodeEditorField::new('content')->setLanguage('php'); ``` As a result, I get a simple textarea field on the admin page. The syntax highlighting does not work. Do I have to do something extra? I use EasyAdmin 4 with Symfony 7 Best regards and thanks in advance
…`, which adds this to the `KeyValueStore` C) You return the `KeyValueStore` from the controller D) A listener from EasyAdmin is called after your controller. It grabs your return value (the `KeyValueStore`) - https://github.com/EasyCorp/EasyAdminBundle/blob/4.x/src/EventListener/CrudResponseListener.php#L28 E…
weaverryan
weaverryan
Read Full Comment
…Bundle\EasyAdminBundle\Context\AdminContext #} {# @var action \EasyCorp\Bundle\EasyAdminBundle\Dto\ActionDto #} {# @var entity \EasyCorp\Bundle\EasyAdminBundle\Dto\EntityDto #} {{ include('@EasyAdmin/crud/action.html.twig') }} {{ dump(ea) }} ``` The problem is that the admin context in the frontend doesn't contain the variable I set in the…
…strpos($this->image, '/') !== false) { return $this->image; } return sprintf('/uploads/newsItemImages/%s', $this->image); } Some people (on forums) seem to have the same issue as me. Don't know if its because of the version? "easycorp/easyadmin-bundle": "^4.5", Hope this helps! Jeroen
…), you cannot use Turbo Drive with EasyAdmin. As you noticed, their JavaScript just isn't set up to work without full page refreshes. This is something that EasyAdmin will need to fix, and I would absolutely love to see it (and wouldn't mind helping…
weaverryan
weaverryan
Read Full Comment
…bit to allow for Turbo to be used. I would LOVE to see this happen and even help with it. As you'll see in this tutorial, we could do some *really* nice things like modals, etc easily in EasyAdmin if it embraced Turbo. Cheers!
weaverryan
weaverryan
Read Full Comment
…thanks to your video, I have configured the fields in a way that when i type, the easyadmin makes ajax calls and searches through the association fields. I need to restrict the second field search using value of the first field. Hmm. That's an…
weaverryan
weaverryan
Read Full Comment
…thanks to your video, I have configured the fields in a way that when i type, the easyadmin makes ajax calls and searches through the association fields. I need to restrict the second field search using value of the first field. What is the best…
curiousDA
curiousDA
Read Full Comment
…core! I hope this helps! Let us know if you still have problems with following this course on a newer Symfony version. This tutorial is really about the EasyAdmin bundle... but because that's just a bundle it affects other Symfony parts like routing, etc…
…the image is not removed or set to null. I believe this is handled in EasyAdmin's `FileUploadType` class: in the `mapFormsToData()` method, it checks to see if the uploaded file from before vs now is "modified" - https://github.com/EasyCorp/EasyAdminBundle/blob/4.x…
weaverryan
weaverryan
Read Full Comment
…it. I have not, personally, done anything this deep. And it's possible that EasyAdmin isn't setup to go this deep. It sounds a bit like some JavaScript might be missing. A few questions: A) On the page, when you click the button, are…
weaverryan
weaverryan
Read Full Comment
…code depends on some libraries you are missing in your project that's why you see those errors. > And then if I modify my webpack.config.js I risk compromising the frontend assets (where I use a different template than EasyAdmin's) or not …
…but shouldn't it be the responsibility of the bundle to have an already working app.js file? And then if I modify my webpack.config.js I risk compromising the frontend assets (where I use a different template than EasyAdmin's) or not ? Cheers…
pasquale_pellicani
pasquale_pellicani
Read Full Comment
…files exist. Though I'm not sure if you need to install Node deps in that `./vendor/easycorp/easyadmin-bundle/` or no :/ Most probably you should add those deps to your package.json file so that the Webpack Encore could get access to them, because…