-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'Sylius:main' into translations/french
- Loading branch information
Showing
38 changed files
with
374 additions
and
138 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# How to customize your admin panel | ||
|
||
* [Basic operations](admin_panel/basic_operations.md) | ||
* [Customizing the logo](admin_panel/logo.md) | ||
* [Customizing the menu](admin_panel/menu.md) | ||
* [Configuring the security access](admin_panel/security.md) | ||
* [Customizing the page titles](admin_panel/page_titles.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
# Customizing the page titles | ||
|
||
## Adding an icon | ||
|
||
<div data-full-width="false"> | ||
|
||
<figure><img src="../../.gitbook/assets/title_with_icon.png" alt="Title with icon"></figure> | ||
|
||
</div> | ||
|
||
To add an icon to the page title, you need to use Twig hooks configuration. | ||
|
||
Search the "title_block" in the Symfony debug profiler at the Twig hooks section. | ||
|
||
<div data-full-width="false"> | ||
|
||
<figure><img src="../../.gitbook/assets/title_block_in_profiler.png" alt="Title block in profiler"></figure> | ||
|
||
</div> | ||
|
||
Here's an example to define a "users" icon on a speaker list. | ||
|
||
```yaml | ||
# config/packages/sylius_bootstrap_admin_ui.yaml | ||
# ... | ||
sylius_twig_hooks: | ||
hooks: | ||
# ... | ||
'sylius_admin.speaker.index.content.header.title_block': | ||
title: | ||
# We need to reuse the same template as 'sylius_admin.common.index.content.header.title_block' | ||
template: '@SyliusBootstrapAdminUi/shared/crud/common/content/header/title_block/title.html.twig' | ||
configuration: | ||
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"> | ||
<figure><img src="../../.gitbook/assets/title_with_subheader.png" alt="Title with subheader"></figure> | ||
</div> | ||
To add a subheader to the page title, you need to use Twig hooks configuration. | ||
See the [previous section](#adding-an-icon) to see how to search for the title block. | ||
Here's an example to define a subheader on a speaker list. | ||
```yaml | ||
# config/packages/sylius_bootstrap_admin_ui.yaml | ||
# ... | ||
sylius_twig_hooks: | ||
hooks: | ||
# ... | ||
'sylius_admin.speaker.index.content.header.title_block': | ||
title: | ||
# We need to reuse the same template as 'sylius_admin.common.index.content.header.title_block' | ||
template: '@SyliusBootstrapAdminUi/shared/crud/common/content/header/title_block/title.html.twig' | ||
configuration: | ||
subheader: app.ui.managing_your_speakers # you also need add this key on your translations. | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.