Skip to content

twin-elements/slider-bundle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#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'