7. Advanced usage

7.1. Override Tree template

By default, the SonataClassificationBundle uses its own view template for the admin tree of categories. You can easily customize it with the SonataAdminBundle configuration :

1
2
3
4
5
6
sonata_admin:
    admin_services:
        sonata.classification.admin.category:
            templates:
                view:
                    tree: '@App/CategoryAdmin/tree.html.twig'