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:
Kamil Kokot 2021-05-04 15:02:37 +01:00 committed by GitHub
commit 66fe6b2a1b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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``.