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
Requires
- php: ^7.1 || ^8.0
- symfony/framework-bundle: ^4.4 || ^5.4
- twin-elements/admin-bundle: ^1.11
Conflicts
- twin-elements/admin-bundle: <1.11.3
README
#Installation 1.composer
- in bundles.php add
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 }
- 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'