dashboard.rst 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. Dashboard
  2. =========
  3. The dashboard is the main landing page. By default the dashboard lists the
  4. different admin areas available.
  5. If you want to custom the dashboard, add the following code to your
  6. application's config file:
  7. .. code-block:: yaml
  8. # app/config/config.yml
  9. sonata_admin:
  10. dashboard_groups:
  11. ... your config ...
  12. Examples
  13. --------
  14. Set the label group & add all the default items
  15. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  16. .. code-block:: yaml
  17. # app/config/config.yml
  18. sonata_admin:
  19. dashboard_groups:
  20. sonata_page:
  21. label: Page
  22. items: ~
  23. Set items group
  24. ^^^^^^^^^^^^^^^
  25. .. code-block:: yaml
  26. # app/config/config.yml
  27. sonata_admin:
  28. dashboard_groups:
  29. sonata_page:
  30. items:
  31. - sonata.page.admin.page
  32. Add a group with all the default items
  33. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  34. .. code-block:: yaml
  35. # app/config/config.yml
  36. sonata_admin:
  37. dashboard_groups:
  38. sonata_page: ~
  39. Add some items in a group
  40. ^^^^^^^^^^^^^^^^^^^^^^^^^
  41. .. code-block:: yaml
  42. # app/config/config.yml
  43. sonata_admin:
  44. dashboard_groups:
  45. sonata_page:
  46. item_adds:
  47. - sonata.page.admin.myitem1
  48. - sonata.page.admin.myitem2
  49. .. image:: ../images/dashboard.png
  50. :alt: Dashboard
  51. :width: 200