Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
javiereguiluz committed Dec 16, 2015
1 parent 4225813 commit c4dd91d
Showing 1 changed file with 35 additions and 33 deletions.
68 changes: 35 additions & 33 deletions Resources/doc/getting-started/5-design-customization.md
Expand Up @@ -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 `<link rel="icon">` 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
------------------------

Expand Down Expand Up @@ -252,4 +219,39 @@ The `class` attribute allows you to target entire sections of the backend:
| `new` | `easyadmin new new-<entity_name>`
| `show` | `easyadmin show show-<entity_name>`

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 `<link rel="icon">` 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

0 comments on commit c4dd91d

Please sign in to comment.