|
@@ -3,51 +3,62 @@ Dashboard
|
|
|
|
|
|
The dashboard is the main landing page. By default the dashboard lists the
|
|
|
different admin areas available.
|
|
|
-If you want to custom the dashbord, add the following code to your
|
|
|
+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:
|
|
|
+ dashboard_groups:
|
|
|
... your config ...
|
|
|
|
|
|
|
|
|
-Some examples of config file:
|
|
|
-1 - Set the label group & add all the default items
|
|
|
+Examples
|
|
|
+--------
|
|
|
+
|
|
|
+Set the label group & add all the default items
|
|
|
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
+
|
|
|
.. code-block:: yaml
|
|
|
|
|
|
# app/config/config.yml
|
|
|
sonata_admin:
|
|
|
- dashboard:
|
|
|
+ dashboard_groups:
|
|
|
sonata_page:
|
|
|
label: Page
|
|
|
items: ~
|
|
|
|
|
|
-2 - Set items group
|
|
|
+Set items group
|
|
|
+^^^^^^^^^^^^^^^
|
|
|
+
|
|
|
.. code-block:: yaml
|
|
|
|
|
|
# app/config/config.yml
|
|
|
sonata_admin:
|
|
|
- dashboard:
|
|
|
+ dashboard_groups:
|
|
|
sonata_page:
|
|
|
items:
|
|
|
- sonata.page.admin.page
|
|
|
|
|
|
-3 - Add a group with all the default items
|
|
|
+Add a group with all the default items
|
|
|
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
+
|
|
|
.. code-block:: yaml
|
|
|
|
|
|
# app/config/config.yml
|
|
|
sonata_admin:
|
|
|
- dashboard:
|
|
|
+ dashboard_groups:
|
|
|
sonata_page: ~
|
|
|
|
|
|
-4 - Add some items in a group
|
|
|
+Add some items in a group
|
|
|
+^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
+
|
|
|
.. code-block:: yaml
|
|
|
|
|
|
# app/config/config.yml
|
|
|
sonata_admin:
|
|
|
- dashboard:
|
|
|
+ dashboard_groups:
|
|
|
sonata_page:
|
|
|
item_adds:
|
|
|
- sonata.page.admin.myitem1
|