doute3621 2013-07-30 13:00
浏览 38
已采纳

添加不受Sonata Admin Bundle管理的实体

I have several entities which are managed by Sonata AdminBundle, they are all located in my dashboard, no problem. I have other entities which are customized and not managed by Sonata AdminBundle, I want to insert them in my dashboard. I read on different forums that we can add content in a different blocks, but no way to find a concrete example.

If you have a solution or some clues to do that, I'm interested :)

Best regards, Enes

  • 写回答

1条回答 默认 最新

  • dq804806 2013-07-30 13:13
    关注

    The admin dashboard is a set of block. So you have one block to display managed entities. If you want to display other information or other entities handled by your own mechanism you have to create a new block.

    A block is handled by the SonataBlockBundle, the online documentation http://www.sonata-project.org/bundles/block/master/doc/index.html explains how to create a new block. Once the block is created, you can register it to the admin dashboard by editing the admin configuration section: https://github.com/sonata-project/sandbox/blob/2.3/app/config/sonata/sonata_admin.yml#L24-L28

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥20 COMSOL频域研究,要加法向加速度的话,加速度随时间变化该如何设置?
  • ¥15 无刷电机要通过什么才能做各种动作
  • ¥15 VS2010通过OnCtlColor函数改变radio控件字体的颜色为白色,但是程序运行后发现不起作用,怎么办?
  • ¥15 Qt中实现子线程和管理线程类之间实时通信
  • ¥15 cacls 命令如何解除锁定文件夹?
  • ¥50 C++使用TWAIN协议如何实现A3幅面扫描仪扫描A4横向
  • ¥15 Vue3重构Nuxt3,出现客户端数据和服务端数据不一致的情况
  • ¥15 如何在sql server里完成筛选
  • ¥15 请问为什么我配置IPsec后PC1 ping不通 PC2,抓包出来数据包也并没有被加密
  • ¥200 求博主教我搞定neo4j简易问答系统,有偿