Include sonata menu in custom link with controller view

642 Views Asked by At

I have this code in config.yml to add a item to the menu:

    # PrestaSonataNavigationBundle
    presta_sonata_navigation:
        menu:
            with_description: false
            items:
                report:
                    roles:
                        - ROLE_SONATA_ADMIN
                    children:
                        reportes:
                            route: informe_show

This route, "informe_show", it's a route to an action on a controller with a custom view, it isn't display the menu with the services items.

How can i do to include the sonata menu?

1

There are 1 best solutions below

0
On

If you want to use the Sonata administration menu on your front layout, please have a look on this answer: show sonata admin menu in every page if the admin is logged in