twin-elements/slider-bundle

Slider for CMS

Installs: 120

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:symfony-bundle

v1.3.6 2022-07-29 12:06 UTC

This package is auto-updated.

Last update: 2024-10-29 06:12:56 UTC


README

#Installation 1.composer

  1. in bundles.php add
  2. TwinElements\SliderBundle\TwinElementsSliderBundle::class => ['all' => true],

3.Add to routes.yaml

slider_admin:
    resource: "@TwinElementsSliderBundle/Controller/"
    prefix: /admin
    type: annotation
    requirements:
        _locale: '%app_locales%'
    defaults:
        _locale: '%locale%'
        _admin_locale: '%admin_locale%'
    options: { i18n: false }
  1. in twin_elements_slider.yaml add
twin_elements_slider:
   image_size: { width: 1920, height: 600 }
   mobile_image_size: { width: 600, height: 600 }
   available_types: [ 'BackgroundImage', 'ImageLeft', 'ImageRight' ]
   default_type: 'ImageLeft'