Skip to content

Commit

Permalink
Add the YAML version of the config
Browse files Browse the repository at this point in the history
  • Loading branch information
loic425 committed Nov 12, 2024
1 parent 080eb6e commit 91d67e5
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions docs/cookbook/admin_panel/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,22 @@

## How to customize the sidebar logo

To customize the sidebar logo, you need to configure the new template to use using the following configuration.
Choose the YAML or the PHP version.

```yaml
# config/packages/sylius_bootstrap_admin_ui.yaml
# ...
sylius_twig_hooks:
hooks:
# ...
'sylius_admin.common.component.sidebar.logo':
image:
# template: '@SyliusBootstrapAdminUi/shared/crud/common/sidebar/logo/image.html.twig'
template: 'shared/crud/common/sidebar/logo/image.html.twig'

```

```php
// config/packages/sylius_bootstrap_admin_ui.php
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
Expand Down Expand Up @@ -34,8 +50,20 @@ return static function (ContainerConfigurator $containerConfigurator): void {

## How to customize the login page logo

To customize the login page logo, you need to configure the new template to use using the following configuration.
Choose the YAML or the PHP version.

```yaml
# config/packages/sylius_bootstrap_admin_ui.yaml
# ...
sylius_twig_hooks:
hooks:
# ...
'sylius_admin.security.login.logo':
image:
# template: '@SyliusBootstrapAdminUi/security/common/logo/image.html.twig'
template: 'security/common/logo/image.html.twig'

```

```php
Expand Down

0 comments on commit 91d67e5

Please sign in to comment.