mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 17:10:53 +00:00
bug #12562 [DOC] update theme structure documentation (Sylvain Just)
This PR was merged into the 1.10-dev branch.
Discussion
----------
| Q | A
| --------------- | -----
| Branch? | master
| Bug fix? | no
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Related tickets |
| License | MIT
<!--
- Bug fixes must be submitted against the 1.7 or 1.8 branch (the lowest possible)
- Features and deprecations must be submitted against the master branch
- Make sure that the correct base branch is set
To be sure you are not breaking any Backward Compatibilities, check the documentation:
https://docs.sylius.com/en/latest/book/organization/backward-compatibility-promise.html
-->
Commits
-------
d3aaaa9e0d [DOC] update theme structure documentation
This commit is contained in:
commit
66fe6b2a1b
1 changed files with 12 additions and 2 deletions
|
|
@ -83,8 +83,16 @@ When you create a new asset or delete an existing one, it is required to rerun t
|
|||
|
||||
4. Customize a template:
|
||||
|
||||
In order to customize the login view you should take the content of ``@SyliusShopBundle/views/login.html.twig`` file
|
||||
and paste it to your theme directory: ``themes/CrimsonTheme/SyliusShopBundle/views/login.html.twig``
|
||||
In order to customize the login view you should take the content of ``@SyliusShopBundle/views/login.html.twig`` file and ...
|
||||
|
||||
* Before theme-bundle v2,
|
||||
paste it to your theme directory: ``themes/CrimsonTheme/SyliusShopBundle/views/login.html.twig``
|
||||
(There are more informations in the official documentation about `theme structure v1.5.1 <https://github.com/Sylius/SyliusThemeBundle/blob/v1.5.1/docs/your_first_theme.md#theme-structure>`_)
|
||||
|
||||
|
||||
* From `theme-bundle v2 <https://github.com/Sylius/SyliusThemeBundle/releases/tag/v2.0.0>`_,
|
||||
paste it to your theme directory: ``themes/CrimsonTheme/templates/bundle/SyliusShopBundle/login.html.twig``
|
||||
(There are more informations in the official documentation about `theme structure v2.0.0 <https://github.com/Sylius/SyliusThemeBundle/blob/v2.0.0/docs/your_first_theme.md#theme-structure>`_)
|
||||
|
||||
Let's remove the registration column in this example:
|
||||
|
||||
|
|
@ -117,6 +125,8 @@ Let's remove the registration column in this example:
|
|||
|
||||
Learn more about customizing templates :doc:`here </customization/template>`.
|
||||
|
||||
You can check major modifications in theme-bundle structure and configuration `here <https://github.com/Sylius/SyliusThemeBundle/blob/master/docs/important_changes.md>`_
|
||||
|
||||
5. Choose your new theme on the channel:
|
||||
|
||||
In the administration panel go to channels and change the theme of your desired channel to ``Crimson Theme``.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue