I have a question about the Admin Dashboard part. Is there any way to do a CSV Import button through either an extension without having to actually make a CSV Upload File FormType and so on?
Another question still related to the EasyAdmin 4 Bundle, is there any way to create a URL with some set-up filters? (e.g: status = $entity->getStatus() from another CRUDController)?
I tried generating the URL as it follows:
$certificateEntriesUrl = $this->adminUrlGenerator
->setController(CertificateEntryCrudController::class)
->set('filters', [
'certificate' => [
'value' => fn(Certificate $certificate) => $certificate->getReference(),
'comparison' => '='
]
])
->generateUrl();
Then I added the code like this:
->add(Crud::PAGE_DETAIL, Action::new(
'CertificateEntries Display',
'Voir toutes les attestations pour cette déclaration',
'fa-solid fa-table-rows')
->linkToUrl($certificateEntriesUrl));
I found some similar posts about the 2nd question up there but it doesn’t work in Symfony 5.4, or I might have made some mistakes which I can’t see, I’m still a beginner in all this.