blackbird/module-universes
最新稳定版本:1.0.0
Composer 安装命令:
composer require blackbird/module-universes
包简介
N/A
README 文档
README
This Magento 2 module allows you to manage different "universes" on your website. Universes are determined through configuration, allowing administrators to choose a code, homepage, category root ID, or product attribute value. Based on the selected universe, the module dynamically applies specific layouts and adds a body class to the page, depending on the universe and page type (homepage, category, or product).
Features
-
Universe Configuration
Choose a universe code, homepage, category root ID, or product attribute value to define a universe. Go to Stores > Configuration > Blackbird extensions > Universes. -
Dynamic Layouts
Allows to add a layout prefixed by the selected universe code for different page types.
Example :{universe_code}_catalog_category_view.xml -
Body Class Injection
Add a custom body class dynamically, reflecting the selected universe.
Example :{universe_code}-universe -
Context resolving
With these service and view model, you can check a universe's context from anywhere :
Blackbird\Universes\ViewModel\Universes
Blackbird\Universes\Api\UniverseResolverInterface -
Flexible Configuration
Admins can easily configure multiple universes, depending on the needs.
Installation
Composer Package:
composer require blackbird/module-universes
Install the module
Go to your Magento root, then run the following Magento command:
php bin/magento setup:upgrade
If you are in production mode, do not forget to recompile and redeploy the static resources, or to use the --keep-generated option.
Contact
For further information, contact us:
- by email: hello@bird.eu
- or by form: https://black.bird.eu/en/contacts/
Authors
- Lucas Ulmer - Maintainer It's me!
- Emilie Wittmann - Contributor - It's me!
- Blackbird Team - Contributor - They're awesome!
License
This project is licensed under the MIT License - see the LICENSE file for details.
That's all folks!
统计信息
- 总下载量: 227
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-01-23