Configuration Reference ======================= This section describes the entire list of configuration options available to customize your backends. All options are defined under the root ``easy_admin`` config key: * `site_name`_ * `formats`_ * `date`_ * `time`_ * `datetime`_ * `number`_ * `disabled_actions`_ * `design`_ * `theme`_ * `color_scheme`_ * `brand_color`_ * `form_theme`_ * `assets`_ * `css`_ * `js`_ * `templates`_ * `list`_ * :ref:`title ` * :ref:`actions ` * :ref:`max_results ` * `edit`_ * `new`_ * `show`_ * `entities`_ site_name --------- (**default value**: ``'Easy Admin'``, **type**: string) The name displayed as the title of the administration zone (e.g. your company name, the project name, etc.) Example: .. code-block:: yaml easy_admin: site_name: 'ACME Inc.' # ... This value is displayed in the backend "as is", so you can include HTML tags and they will be rendered as HTML content. Example: .. code-block:: yaml easy_admin: site_name: 'ACME' # ... formats ------- This is the parent key of the four options that configure the formats used to display dates and numbers. date ~~~~ (**default value**: ``'Y-m-d'``, **type**: string) The format applied in the ``list`` and ``show`` views to display the properties of type ``date``. This format doesn't affect to ``time`` and ``datetime`` properties. The value must be a valid PHP date format according to the syntax options defined in http://php.net/date. Example: .. code-block:: yaml easy_admin: formats: date: 'd/m/Y' # ... time ~~~~ (**default value**: ``'H:i:s'``, **type**: string) The format applied in the ``list`` and ``show`` views to display the properties of type ``time``. This format doesn't affect to ``date`` and ``datetime`` properties. The value must be a valid PHP time format according to the syntax options defined in http://php.net/date. Example: .. code-block:: yaml easy_admin: formats: time: 'h:i A e' # ... datetime ........ (**default value**: ``'F j, Y H:i'``, **type**: string) The format applied in the ``list`` and ``show`` views to display the properties of type ``datetime``. This format doesn't affect to ``date`` and ``time`` properties. The value must be a valid PHP time format according to the syntax options defined in http://php.net/date. Example: .. code-block:: yaml easy_admin: formats: datetime: 'd/m/Y h:i A e' # ... number ~~~~~~ (**default value**: none, **type**: string) The format applied in the ``list`` and ``show`` views to display the numeric properties. The value must be a format according to the syntax options defined in http://php.net/sprintf. Example: .. code-block:: yaml easy_admin: formats: number: '%0.2f' # ... disabled_actions ---------------- (**default value**: empty array, **type**: array) The names of the actions disabled for all backend entities. This value can be overridden in a entity-by-entity basis, so you can disable some actions globally and then re-enable some of them for some entities. Example: .. code-block:: yaml easy_admin: disabled_actions: ['new', 'edit'] # ... design ------ This is the parent key of the options that configure the options related to the visual design of the backend. theme ~~~~~ (**default value**: ``'default'``, **type**: string) The name of the theme used to create the backend. The only theme available is called ``default``. This option is in fact a placeholder for future use. You can safely ignore it. .. caution:: The ``theme`` option is deprecated since 1.x version and it will be removed in EasyAdmin 2.0. color_scheme ~~~~~~~~~~~~ (**default value**: ``'dark'``, **type**: string, **values**: ``'dark'`` or ``'light'``) .. caution:: The ``color_scheme`` option is deprecated since 1.x version and it will be removed in EasyAdmin 2.0. It defines the colors used in the backend design. If you find the default ``dark`` color scheme too dark, try the ``light`` color scheme. Example: .. code-block:: yaml easy_admin: design: color_scheme: 'light' # ... brand_color ~~~~~~~~~~~ (**default value**: ``'#E67E22'``, **type**: string, **values**: any valid CSS expression to define a color) This is the color used to highlight important elements of the backend, such as the site name, links and buttons. Use the main color of your company or project to create a backend that matches your branding perfectly. Example: .. code-block:: yaml easy_admin: design: brand_color: '#3B5998' # any valid CSS color syntax can be used # brand_color: 'rgba(59, 89, 152, 0.5)' # ... form_theme ~~~~~~~~~~ (**default value**: ``'horizontal'``, **type**: string or array of strings, **values**: ``'horizontal'``, ``'vertical'``, any valid form theme template path) .. caution:: The ``horizontal`` and ``vertical`` form theme shortcuts are deprecated since 1.x version and they will be removed in EasyAdmin 2.0. The form theme used to render the form fields in the ``edit`` and ``new`` views. The default ``'horizontal'`` value is a shortcut of ``@EasyAdmin/form/bootstrap_3_horizontal_layout.html.twig`` which displays the form fields using the default horizontal Bootstrap 3 design. The ``'vertical'`` value is a shortcut of ``@EasyAdmin/form/bootstrap_3_layout.html.twig`` which displays the form fields using the more common vertical Bootstrap 3 design. This style is better than ``'horizontal'`` when you want to increase the space available to edit the property values. Example: .. code-block:: yaml easy_admin: design: form_theme: 'vertical' # ... Moreover, you can use your own form theme just by defining the path to its templates. Example: .. code-block:: yaml easy_admin: design: form_theme: '@App/custom_form_theme.html.twig' # ... You can even use several form themes at the same time. Example: .. code-block:: yaml easy_admin: design: form_theme: ['@App/custom_form_theme.html.twig', '@Acme/form/global_theme.html.twig'] # ... assets ~~~~~~ This is the parent key of the ``css`` and ``js`` keys that allow to include any number of CSS and JavaScript assets in the backend layout. css ... (**default value**: empty array, **type**: array, **values**: any valid link to CSS files) This option defines the custom CSS file (or files) that are included in the backend layout after loading the default CSS files. It's useful to link to the CSS files that customize the design of your backends. The values of this option are output directly in a ```` HTML element, so you can use relative or absolute links. Example: .. code-block:: yaml easy_admin: design: assets: css: ['/bundles/app/custom_backend.css', 'https://example.com/css/theme.css'] # ... CSS files are included in the same order as defined. This option cannot be used to remove the default CSS files loaded by EasyAdmin. To do so, you must override the ```` part of the layout template using a custom template. js .. (**default value**: empty array, **type**: array, **values**: any valid link to JavaScript files) This option defines the custom JavaScript file (or files) that are included in the backend layout after loading the default JavaScript files. It's useful to link to the JavaScript files that customize the behavior of your backends. The values of this option are output directly in a ``