简体   繁体   中英

Split domains in different sub menus in symfony sonata admin bundle

Hy,

I'm working with Symfony '2.7' / Sonata Admin 'dev-master' / IbrowsSonataTranslationBundle '2.7'

Here is my code in sonata_admin.yml :

 sonata.admin.group.administration:
            label:           sonata_administration
            label_catalogue: SonataAdminBundle
            icon:            '<i class="fa fa-cogs"></i>'
            items:
                - sonata.user.admin.user
                - sonata.user.admin.group
                #- sonata.page.admin.site
                # - sonata.notification.admin.message
                - ibrows_sonata_translation.admin.orm

So my problème is that i need to separate domains in different submenus if it's possible, does anyone know how to go through this.

I have three domains : messages, routes, system

Thanks

I am not sure if this is the answer that you are looking for.

in your src/AppBundle/Resources/config/admin.yml are the entities listed that you can edit in the Sonata adminBundle. under tags look for group: and change the value after group:

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM