dashboard.rst 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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 dashbord, 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:
  11. ... your config ...
  12. Some examples of config file:
  13. 1 - Set the label group & add all the default items
  14. .. code-block:: yaml
  15. # app/config/config.yml
  16. sonata_admin:
  17. dashboard:
  18. sonata_page:
  19. label: Page
  20. items: ~
  21. 2 - Set items group
  22. .. code-block:: yaml
  23. # app/config/config.yml
  24. sonata_admin:
  25. dashboard:
  26. sonata_page:
  27. items:
  28. - sonata.page.admin.page
  29. 3 - Add a group with all the default items
  30. .. code-block:: yaml
  31. # app/config/config.yml
  32. sonata_admin:
  33. dashboard:
  34. sonata_page: ~
  35. 4 - Add some items in a group
  36. .. code-block:: yaml
  37. # app/config/config.yml
  38. sonata_admin:
  39. dashboard:
  40. sonata_page:
  41. item_adds:
  42. - sonata.page.admin.myitem1
  43. - sonata.page.admin.myitem2
  44. .. image:: ../images/dashboard.png
  45. :alt: Dashboard
  46. :width: 200