Taitava\SlickCarousel\CarouselExtension
Class CarouselExtension
Synopsis
class CarouselExtension
extends DataExtension
{
- // members
- private static array $has_many = ;
- // methods
- public void updateCMSFields()
- public DBHTMLText Carousel()
- public void InitCarousel()
Hierarchy
Extends
- SilverStripe\ORM\DataExtension
Members
private
- $has_many
Methods
public
- Carousel() — Renders the carousel using Carousel.ss (which will lead to include CarouselSlide.ss for each slide). If you wish to implement some custom iteration for the carousel slides, you can call $CarouselSlides in your template instead of this method.
- InitCarousel() — Handles all CSS and JS requirements for the carousel and initializes every carousel element on the page. No matter where you call this - anywhere in you template or PHP code. Or if you use $Carousel in yor template, this gets called automatically. Multiple calls do no harm.
- updateCMSFields()