sonata-project/SonataAdminBundle — Issue #411: Overriding Bundle Templates
Author: retropixel
Created: 2011-11-17 03:13:34+00:00
State: open

Is it posible to override the SonataAdminBundle templates using the mechanism described in the symfony docs?

http://symfony.com/doc/2.0/book/templating.html#overriding-bundle-templates

I know we can overwrite the following templates using the config options

sonata_admin:
templates:
# default global templates
layout: SonataAdminBundle::standard_layout.html.twig
ajax: SonataAdminBundle::ajax_layout.html.twig

# default value if done set, actions templates, should extends a global templates
list: SonataAdminBundle:CRUD:list.html.twig
show: SonataAdminBundle:CRUD:show.html.twig
edit: SonataAdminBundle:CRUD:edit.html.twig

However, I'm trying to overwrite some of the Core templates, such as
bundles/Sonata/AdminBundle/Resources/views/Core/dashboard.html.twig

I've created the required file under
app/Resources/Sonata/AdminBundle/Resources/views/Core/dashboard.html.twig

This doesn't seem to work - cleared the cache as well.

Thank you,
Horia