Is there a way to add an input field to the default sonata admin panel in symfony 2?
Has anyone done this before? I can't seem to find any documentation.
Thanks.
When using Symfony you can override any twig template. This is the file you are looking for:
1) Copy above file into your Resources under appropriate folder.
2) Edit config.yml:
sonata_admin:
templates:
list_block: AppBundle:Sonata:block_admin_list.html.twig
Clear cache, and you are set.
You could also create your own blocks for Dashboard: https://sonata-project.org/bundles/admin/master/doc/reference/dashboard.html
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.