blackbird / module-universes
N/A
Installs: 9
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 1
Open Issues: 0
Type:magento2-module
Requires
- magento/framework: >=100.0.0
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!