Skip to content

Commit

Permalink
[Docs] Define an icon for every index pages
Browse files Browse the repository at this point in the history
  • Loading branch information
loic425 committed Dec 23, 2024
1 parent f407665 commit 95ba528
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 0 deletions.
5 changes: 5 additions & 0 deletions config/packages/sylius_twig_hooks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ sylius_twig_hooks:
page_body:
template: 'book/show/content/page_body.html.twig'

'sylius_admin.common.index.content.header.title_block':
title:
configuration:
icon: tabler:list-details

'sylius_admin.book.index.content.header':
description:
template: 'book/index/content/header/description.html.twig'
Expand Down
Binary file added docs/.gitbook/assets/icon_for_index_pages.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions docs/cookbook/admin_panel/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@
* [Customizing the logo](logo.md)
* [Customizing the menu](menu.md)
* [Configuring the security access](security.md)
* [Customizing the page titles](page_titles.md)
20 changes: 20 additions & 0 deletions docs/cookbook/admin_panel/page_titles.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,26 @@ sylius_twig_hooks:
icon: tabler:users # you can use any icon from Symfony UX icons.
```
You can also define a default icon for every "index" pages.
<div data-full-width="false">
<figure><img src="../../.gitbook/assets/icon_for_index_pages.png" alt="Icon for index pages"></figure>
</div>
```yaml
# config/packages/sylius_bootstrap_admin_ui.yaml
# ...
sylius_twig_hooks:
hooks:
# ...
'sylius_admin.common.index.content.header.title_block':
title:
configuration:
icon: tabler:list-details
```
## Adding a subheader
<div data-full-width="false">
Expand Down

0 comments on commit 95ba528

Please sign in to comment.