The dashboard is the main landing page. By default the dashboard lists the different admin areas available. The admin list is a block defined by the sonata.admin.block.admin_list service. More block can be added, just follow the instruction in the BlockBundle documentation.
ダッシュボードはメインのランディングページです。デフォルトのダッシュボードは異なるAdminエリアがリストアップされます。 管理リストは sonata.admin.block.admin_list サービスで定義されたブロックです。 BlockBundle documentation. の指示に従うだけで より多くのブロックを追加することがでます。
If you want to customize the dashboard, add the following code to your application’s config file:
もしダッシュボードをカスタマイズしたいなら、以下のコードをアプリケーション設定ファイルに追加してくだいさい。
# app/config/config.yml
sonata_admin:
dashboard:
blocks:
# display a dashboard block
- { position: left, type: sonata.admin.block.admin_list }
groups:
... your config ...
# app/config/config.yml
sonata_admin:
dashboard:
blocks:
# display a dashboard block
- { position: left, type: sonata.admin.block.admin_list }
groups:
sonata_page:
label: Page
items: ~
# app/config/config.yml
sonata_admin:
dashboard:
blocks:
# display a dashboard block
- { position: left, type: sonata.admin.block.admin_list }
groups:
sonata_page:
items:
- sonata.page.admin.page
# app/config/config.yml
sonata_admin:
dashboard:
blocks:
# display a dashboard block
- { position: left, type: sonata.admin.block.admin_list }
groups:
sonata_page: ~
# app/config/config.yml
sonata_admin:
dashboard:
blocks:
# display a dashboard block
- { position: left, type: sonata.admin.block.admin_list }
groups:
sonata_page:
item_adds:
- sonata.page.admin.myitem1
- sonata.page.admin.myitem2
# app/config/config.yml
sonata_admin:
dashboard:
blocks:
# display two dashboard blocks
- { position: left, type: sonata.admin.block.admin_list, settings: { groups: [sonata_page1, sonata_page2] } }
- { position: right, type: sonata.admin.block.admin_list, settings: { groups: [sonata_page3] } }
groups:
sonata_page1:
items:
- sonata.page.admin.myitem1
sonata_page2:
items:
- sonata.page.admin.myitem2
- sonata.page.admin.myitem3
sonata_page3:
items:
- sonata.page.admin.myitem4