dft/silverstripe-carousel
Composer 安装命令:
composer require dft/silverstripe-carousel
包简介
A base framework for creating sliders/carousels on your SilverStripe site
README 文档
README
Module that adds the ability to generate Carousels/Sliders to your SilverStripe website.
Requirements
- SilverStripe Framework: 4.*
- SilverStripe CMS: 4.*
Installation
Either via composer:
composer require "dft/silverstripe-carousel"
Then run:
./vendor/bin/sake dev/build flush=1
or (from your browser):
http://yoursiteurl.com/dev/build/
Usage
The following is a quick guide to getting using this module:
Step 1: Add variable to template
Once installed, you have to add the following template variable to any templates you require a carousel to appear on:
$CarouselSlides
Step 2: Enable carousel on your page
Next, log into the admin interface and edit the page you want to add a carousel to.
Then click the "Settings" tab, and tick the "show carousel" checkbox.
Step 4: Setup Carousel
Once this is done you will be able to set the following fields:
- Width and Height settings (this will determine the size of the rendered images)
- Show Controls (this will add next/prev buttons) NOTE if you want this to work correctly, you will need to disable hash rewrites in SilverStripe
- Show Indicators (show the blips at the bottom of aa page).
- Interval (how quickly will each slide be displayed).
Step 5: Add some slides
Once you have finished configuring, you can go back to the "content" tab and a "carousel" tab should have appeared in the right hand side of the editing pane.
You can now add slides, attach images and edit their titles.
Using a different carousel
By default this module uses Bootstrap 4 carousel from a CDN. If you
want to use your own carousel, you will need to copy the
CarouselSlides template into your theme and amend the HTML and
Requirements calls
dft/silverstripe-carousel 适用场景与选型建议
dft/silverstripe-carousel 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 85 次下载、GitHub Stars 达 4, 最近一次更新时间为 2024 年 11 月 05 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「silverstripe」 「slider」 「carousel」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 dft/silverstripe-carousel 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 dft/silverstripe-carousel 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 dft/silverstripe-carousel 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Display a FlexSlider on pages of your website
The Yii2 extension uses jQuery jquery.carousel-1.1.min.js and makes image carousel from php array of structure defined.
Slick slider element Silverstripe
yii2 swiper slider
Analytics chooser extensions for site settings.
统计信息
- 总下载量: 85
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 18
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2024-11-05