An Elemental block to implement dynamic/silverstripe-carousel, allowing you to add a carousel to your Silverstripe CMS website. This module integrates with Silverstripe Elemental, providing a flexible way to display multiple images or videos in a dynamic and customizable carousel format.
- Requirements
- Installation
- Configuration
- Usage
- Customization
- Related Modules
- Maintainers
- Bugtracker
- Development and Contribution
- License
- Silverstripe CMS ^5.0
- dnadesign/silverstripe-elemental ^5.0
- dynamic/silverstripe-carousel ^2.0
Install via Composer:
composer require dynamic/silverstripe-elemental-carousel
Run a dev/build to regenerate the manifest:
./vendor/bin/sake dev/build
After installation, the ElementCarouselBlock
will be available for use within the Silverstripe Elemental editor.
- In the CMS, navigate to a page where Elemental blocks are enabled.
- Click Add Block and select Carousel Block.
- Use the block settings to configure the carousel.
The block supports two types of content:
- Images: Upload and display a sequence of images.
- Videos: Embed video links from YouTube, Vimeo, or other platforms.
To add content:
- Open the Carousel Block in the CMS.
- Click Add Slide and select an Image or Video.
- If adding an Image:
- Upload an image.
- Optionally, add a caption or link.
- If adding a Video:
- Provide the video URL.
- Optionally, add a caption.
The default template assumes you are using Bootstrap 5. If you are not using Bootstrap, you can create a custom template:
-
Locate the Default Template
The default template is located at:templates/Dynamic/ElementalCarousel/Includes/CarouselBlock.ss
-
Copy to Your Theme
Copy theCarouselBlock.ss
file to your theme’s directory:themes/your-theme/templates/Dynamic/ElementalCarousel/Includes/CarouselBlock.ss
-
Modify the Template
Edit the copiedCarouselBlock.ss
file to:- Adjust the HTML structure.
- Modify CSS classes.
- Add or remove elements.
-
Include Necessary Assets
Ensure your project includes JavaScript or CSS required for the carousel.
For more details, refer to the Silverstripe CMS Documentation.
This module is part of a suite of Elemental modules. Other modules that use silverstripe-carousel
include:
For additional Elemental modules, see Dynamic’s Elemental Modules.
Bugs are tracked in the issues section of this repository. Before submitting an issue, please review existing issues to ensure yours is unique.
If the issue appears to be new:
- Create a new issue.
- Describe the steps required to reproduce your issue and the expected outcome. Unit tests, screenshots, and screencasts can help here.
- Provide details about your environment:
- Silverstripe version
- Browser and version
- PHP version
- Operating system
- Any installed Silverstripe modules
Security Issues:
Please report security issues to the module maintainers directly. Avoid filing security issues in the bugtracker.
We welcome contributions! Please ensure you raise a pull request and discuss with the module maintainers.
This module is licensed under the BSD-3-Clause License. See the LICENSE file for details.