简体   繁体   中英

Sonata Admin on Symfony

First, I'm sorry for my bad english.

I developp a little project on Symfony. I use Sonata Admin for my panel administration.

I want to custom left menu. In fact, by default, items are grouped. How to do for single items ?

My code :

# services.yml
admin.page:
    class: AppBundle\Admin\PageAdmin
    arguments: [~, AppBundle\Entity\PageEntity, ~]
    tags: - { name: sonata.admin, manager_type: orm, group: Page,label: Page }
    public: true

Thank you for your help. :)

2.6. Show menu item without treeview

Add to your admin service tag on_top: true

 tags:
    - {name: sonata.admin, manager_type: orm, group: admin, label: Post, on_top: true}

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