From c4dd91df93a0070a6b9379d557a3fa495d7c8c5c Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Wed, 16 Dec 2015 22:54:32 +0100 Subject: [PATCH] Fixes --- .../getting-started/5-design-customization.md | 68 ++++++++++--------- 1 file changed, 35 insertions(+), 33 deletions(-) diff --git a/Resources/doc/getting-started/5-design-customization.md b/Resources/doc/getting-started/5-design-customization.md index e7cd6365fa..0999a2d07c 100644 --- a/Resources/doc/getting-started/5-design-customization.md +++ b/Resources/doc/getting-started/5-design-customization.md @@ -152,39 +152,6 @@ easy_admin: # ... ``` -Customizing the favicon ------------------------ - -A nice trick for backends is to change their favicon to better differentiate -the backend from the public website (this is specially useful when opening lots -of tabs in your browser). - -If you want to apply this technique to your backends, just create the favicon -image (using any common format: `.ico`, `.png`, `.gif`, `.jpg`) and set the -`favicon` option: - -```yaml -easy_admin: - design: - favicon: '/assets/backend/favicon.png' - # ... -``` - -The value of the `design.favicon` option is directly used as the value of the -`href` attribute of the `` element of the backend's layout. - -If your favicon uses an uncommon graphic format, you must define both the `path` -of the favicon and its `mime_type`: - -```yaml -easy_admin: - design: - favicon: - path: '/assets/backend/favicon.xxx' - mime_type: 'image/xxx' - # ... -``` - Adding Custom Web Assets ------------------------ @@ -252,4 +219,39 @@ The `class` attribute allows you to target entire sections of the backend: | `new` | `easyadmin new new-` | `show` | `easyadmin show show-` +Customizing the favicon +----------------------- + +A nice trick for backends is to change their favicon to better differentiate +the backend from the public website (this is specially useful when opening lots +of tabs in your browser). + +If you want to apply this technique to your backends, just create the favicon +image (using any common format: `.ico`, `.png`, `.gif`, `.jpg`) and set the +`favicon` option: + +```yaml +easy_admin: + design: + assets: + favicon: '/assets/backend/favicon.png' + # ... +``` + +The value of the `favicon` option is used as the value of the `href` attribute +of the `` element in the backend's layout. + +If your favicon uses an uncommon graphic format, you must define both the `path` +of the favicon and its `mime_type`: + +```yaml +easy_admin: + design: + assets: + favicon: + path: '/assets/backend/favicon.xxx' + mime_type: 'image/xxx' + # ... +``` + [advanced-design-customization]: ../tutorials/advanced-design-customization.md