Is this autocomplete configuration still valid for EasyAdmin 4, or is there a better way to do it? I'm trying to use a collection type field because I like how it creates an extra field per item, but I need it to be able…
Hey Victor,
I have this version of EasyAdmin Bundle installed:
"name": "easycorp/easyadmin-bundle",
"version": "v4.0.9",
I think this one is the actualy latest.
I am sorry, but I am beginner in Symfony, Composer... Could you specify how can I switch to EasyAdminBundle…
Hi,
I'm learning to use EasyAdmin 3 (on Symfony 5) and I'm trying to use the CSV export. In this part of the tutorial there is the follow code:
`
$queryBuilder = $this->createListQueryBuilder(
$this->entity['class'],
$sortDirection,
$this->request->query->get('sortField'),
$this…
Hi everyone,
I'm stating now with EasyAdmin, and I'm struggling with collection type, I see that you use a FormType to build the Collection in entry_type. How do I tell it to use another admin? I want to use a collection of…
Hello,
templates/admin/list.html.twig
`{% extends '@EasyAdmin/default/list.html.twig' %}
{% block item_actions %}
{% set _list_item_actions = _list_item_actions|filter_admin_actions(item) %}
{{ dump(item_actions) }}
{{ parent() }}
{% endblock %}`
I don't see the dump.
Looks like the file hasn't been overrided…
Btw: In Symfony 4 with EasyAdmin Bundle with Flex, you need to extend this class: EasyCorp\Bundle\EasyAdminBundle\Controller\AdminController instead of: JavierEguiluz\Bundle\EasyAdminBundle\Controller\AdminController
This worked for me :)
…css & js links it opens them normally. Also, i don't understand why i literraly have no /web/bundles/easyadmin folder with those 2 files. Using the assets:install cmd gives me this msg : " [OK] All assets were successfully installed. "
So right now i'm…
|
|
// ... lines 1 - 2
|
|
security: |
|
|
// ... lines 4 - 38
|
|
access_control: |
|
- { path: ^/easyadmin, roles: ROLE_ADMIN } |
See Code Block in Script
Got error - try to redirect to EasyAdmin4
```
public function onAuthenticationSuccess(Request $request, TokenInterface $token, string $firewallName): ?Response
{
return new RedirectResponse(
$this->router->generate('app_admin')
);
}```
Unable to find the current firewall LogoutListener, please provide the provider key manually.
What i missing ?
Hi,
Does symfony ux Chartsjs work in easyadmin3 dashboard?
And if I add this on easy_admin.yaml file :
`entities:
# List the entity class name you want to manage
User:
class: App\Entity\User
label: Utilisateurs
templates:
list: 'easy_admin/list.html.twig'`
I have this error :
`Variable "item_actions" does not exist.
`
Is it possible to configure access to Easy Admin Bundle such that different users to get to see different views?
For example a manager can only see the staff for the their own office, but a company owner can see all managers, all offices, and…
Yes, as of EasyAdmin 4.14 you can use the Symfony router: https://dev.to/javiereguiluz/new-in-easyadmin-pretty-urls-2knk
This is deprecated and will be removed in EasyAdmin 5. Routes are now normal and not ugly, and use the Symfony router.
{% set path = path('admin_question_edit', {entityId: question.id}) %}
```twig
{% if is_granted('ROLE_ADMIN') %}
{% endif %}
Hey |mention:76903|
Are you trying to use Turbo with EasyAdmin? I'm afraid EasyAdmin has not added support for Turbo yet, perhaps they will in the future.
Cheers!
1. Override the easyadmin layout.html.twig
2. In the body tag, set the following attributes
```
data-controller="dashboard-modal"
data-dashboard-modal-current-page-value="{{ ea.request.requestUri }}"
```
3. Create the dashboard modal controller
```
import { Controller } from "@hotwired/stimulus";
import Modal from "bootstrap/js…
Hey Rufnex,
You don't need to have Yarn because all EasyAdmin assets are precompiled and work out-of-the-box. For your personal assets - sure, you can use that new AssetMapper. I suppose you would need to include your files as plain JS / CSS…
…EasyAdmin, and I use PostgreSQL.
My problem is the following: I have imported some data in one of my tables directly from an older database to the database that I use in this project. The result is: I can't insert new record from EasyAdmin…
In case anyone else has trouble finding the EasyAdmin documentation icon, it was removed from the Profiler bar in EasyAdmin 4.4.2 per this issue:
`https://github.com/EasyCorp/EasyAdminBundle/pull/5453`
So.. if you're using 4.4.2 or later, just click…
…vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35)
at Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run()
(vendor/autoload_runtime.php:29)
at require_once('/Users/mister.x/Projects/easyAdmin/vendor/autoload_runtime.php')
(public/index.php:5)
```
SomeWhere from this:
```php
protected function getRedirectResponseAfterSave(AdminContext $context, string $action): RedirectResponse…
x
597