12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- Dashboard
- =========
- The dashboard is the main landing page. By default the dashboard lists the
- different admin areas available.
- If you want to custom the dashboard, add the following code to your
- application's config file:
- .. code-block:: yaml
- # app/config/config.yml
- sonata_admin:
- dashboard_groups:
- ... your config ...
- Examples
- --------
- Set the label group & add all the default items
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- .. code-block:: yaml
- # app/config/config.yml
- sonata_admin:
- dashboard_groups:
- sonata_page:
- label: Page
- items: ~
- Set items group
- ^^^^^^^^^^^^^^^
- .. code-block:: yaml
- # app/config/config.yml
- sonata_admin:
- dashboard_groups:
- sonata_page:
- items:
- - sonata.page.admin.page
- Add a group with all the default items
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- .. code-block:: yaml
- # app/config/config.yml
- sonata_admin:
- dashboard_groups:
- sonata_page: ~
- Add some items in a group
- ^^^^^^^^^^^^^^^^^^^^^^^^^
- .. code-block:: yaml
- # app/config/config.yml
- sonata_admin:
- dashboard_groups:
- sonata_page:
- item_adds:
- - sonata.page.admin.myitem1
- - sonata.page.admin.myitem2
- .. image:: ../images/dashboard.png
- :alt: Dashboard
- :width: 200
|