Configure Menu in Sonata Admin Bundle

djoo picture djoo · Aug 13, 2014 · Viewed 9.7k times · Source

I try to configure a custom admin menu in the sidebad of my Sonata Admin Bundle, but i don't understand how to ?

Thanks

Djoo

Answer

HypeR picture HypeR · Aug 21, 2014

The sidebar nav doesn't have a specific configuration, it uses the dashboard config to be generated.

To see it, you must be logged in and the user must have ROLE_SONATA_ADMIN to see the sidebar nav.

https://github.com/antoinemineau/SonataAdminBundle/blob/master/Resources/views/standard_layout.html.twig#L181

A related issue is explained here: https://github.com/sonata-project/SonataAdminBundle/issues/2321#issuecomment-52756483