[英]Symfony2, Sonata : Remove an action from menu generated by a sonata bundle
我需要清理管理員端,使其適合我的客戶需求。
我正在使用Sonata的NewsBundle,實際上我不需要使用注釋,因此我想從管理員端將其刪除。 至少從菜單。 有沒有辦法在配置中禁用它? 我在文檔中找不到關於此的任何提示。
這是我不想再看到的特定區域:
順便說一句,菜單可能是由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 ...
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.