slider_collection
The module is supposed to integrate different slider libraries in drupal. The main module is just a wrapper for the slider libraries and provides some defaults. You can enable different sub modules to provide integration for the slider library of your choice.
The sub modules integrate the slider libraries in views, so that you can easily build slider views.
Further integration in other components of drupal might also be added in the future.
Currently supported slider libraries:
Installation with composer merge plugin
1. If not added yet, install composer merge plugin.
composer require 'wikimedia/composer-merge-plugin:^2.0'
2. Add the config for merge-plugin in your composer.json in the extra section:
{
"extra": {
"merge-plugin": {
"include": [
"web/modules/contrib/*/modules/*/composer.libraries.json"
],
"recurse": true
}
},
}
3. You can include only the required composer.libraries.json file to use. For example, if you want to use only a Swiper library you need to add something like that:
{
"extra": {
"merge-plugin": {
"include": [
"web/modules/contrib/slider_collection/modules/sc_swiper/composer.libraries.json"
],
"recurse": true
}
},
}