SonataAdminBundle 自定义组图标 [英] SonataAdminBundle custom group icon
本文介绍了SonataAdminBundle 自定义组图标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用 SonataAdminBundle 为我的页面实体生成一个 CRUD.
I'm using SonataAdminBundle to generate a CRUD for my Page entity.
对于下面的 yaml 文件,菜单显示在侧边栏中.
With the yaml file bellow the menu is displayed in the sidebar.
我想更改组默认图标fa fa-folder".
I would like to change the group default icon which is "fa fa-folder".
但我没有找到这样做的选项.
But I don't find the option to do it.
sonata.admin.page:
class: FM\AppBundle\Admin\Page\Page
tags:
- { name: sonata.admin, manager_type: orm, group: "CMS", label: "Pages" }
arguments:
- ~
- FM\AppBundle\Entity\Page\Page
- ~
推荐答案
icon"选项:
icon: "<i class=\"fa fa-folder\"></i>"
在您的示例中:
sonata.admin.page:
class: FM\AppBundle\Admin\Page\Page
tags:
- { name: sonata.admin, manager_type: orm, group: "CMS", label: "Pages", icon: "<i class=\"fa fa-folder\"></i>" }
arguments:
- ~
- FM\AppBundle\Entity\Page\Page
- ~
这篇关于SonataAdminBundle 自定义组图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文