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

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

报告相同问题?

悬赏问题

  • ¥100 需要跳转番茄畅听app的adb命令
  • ¥50 寻找一位有逆向游戏盾sdk 应用程序经验的技术
  • ¥15 请问有用MZmine处理 “Waters SYNAPT G2-Si QTOF质谱仪在MSE模式下采集的非靶向数据” 的分析教程吗
  • ¥50 opencv4nodejs 如何安装
  • ¥15 adb push异常 adb: error: 1409-byte write failed: Invalid argument
  • ¥15 nginx反向代理获取ip,java获取真实ip
  • ¥15 eda:门禁系统设计
  • ¥50 如何使用js去调用vscode-js-debugger的方法去调试网页
  • ¥15 376.1电表主站通信协议下发指令全被否认问题
  • ¥15 物体双站RCS和其组成阵列后的双站RCS关系验证