plakart/contao-swiper-extension
最新稳定版本:2.0.0
Composer 安装命令:
composer require plakart/contao-swiper-extension
包简介
Erweitert den Standard-Contao Swiper um weitere Optionen
README 文档
README
This extension enhances the default Contao Swiper with three additional fields:
- Toggle navigation buttons
- Toggle pagination bullets
- Custom JSON options for the Swiper instance
This avoids the need to create multiple Swiper templates.
The implementation was strongly inspired by fritzmg's extension (https://github.com/fritzmg) "contao-swiper" (https://github.com/fritzmg/contao-swiper).
Custom Options
The Custom options field expects a valid JSON configuration for Swiper.
Its content is merged directly into the initial Swiper options and can therefore override the other fields such as navigation or pagination.
Example configuration for the field Custom options
{
"loop": true,
"spaceBetween": 24,
"navigation": false,
"pagination": {
"el": ".custom-pagination",
"clickable": true
},
"breakpoints": {
"768": {
"slidesPerView": 2
},
"1200": {
"slidesPerView": 4
}
}
}
统计信息
- 总下载量: 41
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: LGPL-3.0-or-later
- 更新时间: 2026-03-12