- Download this repo as zip
- Unpack the zip to your
hybris/bin/custom
folder - Add the
envribbon
extension to yourlocalextensions.xml
- Build
If you want to add a ribbon component to your storefront:
- Add
envribbonaddon
to yourlocalextensions.xml
ant addoninstall -Daddonnames="envribbonaddon" -DaddonStorefront.yacceleratorstorefront="<your storefront>"
- Build
- Update system
- Add a
EnvRibbonComponent
to yourFooterSlot
(check the demo data included in the addon for details)
-
You can "click through" the ribbon (CSS
pointer-events: none
) -
There is a single CSS file that controls the style of the ribbon everywhere:
envribbon/resources/envribbon/envribbon.css
(Build callbacks take care of copying the stylesheet where it is needed) -
If deployed in a CCv2 environment, the extension will auto-detect the environment (code and type)
-
For on-prem environments (or if you want to override the detected values), you can use:
ribbon.environment.code=<environment identifier> ribbon.environment.aspect=<aspect name, optional> ribbon.environment.type=<type> # development, staging, production