Search by

odiseoteam / sylius-banner-plugin

odiseo

This plugin add banners to your Sylius project

Package info

github.com/odiseoteam/SyliusBannerPlugin

Type:sylius-plugin

pkg:composer/odiseoteam/sylius-banner-plugin

Statistics

Installs: 105 431

Dependents: 0

Suggesters: 0

Stars: 19

Open Issues: 7


README

Sylius Banner Plugin

Description

This is a Sylius Plugin that add banners to your store. The banners are fully customizable by the admin.

Features:

  • Templates: Show all images or by taxon.

  • Sliders: We are providing the integration with Swiper.js.

Supported versions:

Package Version
PHP ^8.2
sylius/sylius ^2.0

Screenshots

Banners admin

Banners admin edit

Banners shop homepage

Demo

Want a live walkthrough of this plugin? Get in touch — or browse all our Sylius plugins at odiseo.io.

Configuration

Images

The banner images are rendered through LiipImagine. By default the plugin serves them as WebP, with quality 80 for the desktop filter set and 75 for the mobile one. You can change it from your application:

# config/packages/odiseo_sylius_banner.yaml
odiseo_sylius_banner:
    images:
        format: webp # null keeps the format of the uploaded file
        quality: 80
        mobile_quality: 75

Upgrading from 2.0: previously no format or quality was declared, so the images were served in their original format with quality 100. Set format: null and quality: 100 to keep the old behaviour. The uploaded file is always stored as it is, only the rendered image changes.

Order

Banners have a position field. They are rendered from the lowest position to the highest one, using the id as a tie-breaker, and the position is editable from the admin panel. The admin grid is sorted by position as well.

Documentation

Credits

This plugin is maintained by Odiseo. Want us to help you with this plugin or any Sylius project? Get in touch.