简体   繁体   中英

Symfony2, Sonata : Remove an action from menu generated by a sonata bundle

I need to clean the admin side so it fits to the need of my client.

I'm using NewsBundle from Sonata, i actually don't need to use comments so i'd like to remove it from the admin side. At least from the menu. Is there a way to disable it in the config? I have not find any hints in the doc about this.

Here the specific area where i would like to not see it anymore :

奏鸣曲菜单

奏鸣曲菜单

By the way, the menu might be generated by KnpMenu

要自定义仪表盘和侧面菜单中显示的组,您需要编辑app/config/config.yml

sonata_admin: dashboard: ... groups: sonata_blog: label: sonata_content label_catalogue: SonataNewsBundle icon: '<i class="fa fa-th"></i>' items: # - sonata.news.admin.comment - sonata.news.admin.post
sonata.admin.group.classification: label: sonata_classification label_catalogue: SonataClassificationBundle icon: '<i class="fa fa-sitemap"></i>' items: - sonata.classification.admin.category - sonata.classification.admin.tag - sonata.classification.admin.collection ...

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