简体   繁体   English

在Symfony Sonata管理员捆绑包的不同子菜单中拆分域

[英]Split domains in different sub menus in symfony sonata admin bundle

Hy, HY,

I'm working with Symfony '2.7' / Sonata Admin 'dev-master' / IbrowsSonataTranslationBundle '2.7' 我正在使用Symfony'2.7' / Sonata Admin'dev -master' / IbrowsSonataTranslationBundle'2.7'

Here is my code in sonata_admin.yml : 这是我在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. src / AppBundle / Resources / config / admin.yml中的是列出的实体,您可以在Sonata adminBundle中进行编辑。 under tags look for group: and change the value after group: 在标签下查找group:并在group之后更改值

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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