``copex/module-storeviewlayout``
It provides a layout handle by store_code and layout handle per website, for example store_{{storecode}}.xml or website_{{website_code}}.xml With this layout handle different layout commands per storeview or per website are possible.
* = in production please use the --keep-generated
option
- Unzip the zip file in
app/code/CopeX
- Enable the module by running
php bin/magento module:enable CopeX_StoreViewLayout
- Apply database updates by running
php bin/magento setup:upgrade
* - Flush the cache by running
php bin/magento cache:flush
- Make the module available in a composer repository for example:
- private repository
repo.magento.com
- public repository
packagist.org
- public github repository as vcs
- private repository
- Add the composer repository to the configuration by running
composer config repositories.repo.magento.com composer https://repo.magento.com/
- Install the module composer by running
composer require copex/module-storeviewlayout
- enable the module by running
php bin/magento module:enable CopeX_StoreViewLayout
- apply database updates by running
php bin/magento setup:upgrade
* - Flush the cache by running
php bin/magento cache:flush
nothing to say here
- Observer
- load_layout_before > CopeX\StoreViewLayout\Observer\Frontend\Load\LayoutBefore