\CarouselPage
Basic page type owning a carousel.
Synopsis
class CarouselPage
extends Page
{
- // members
- private static string $icon = 'carousel/img/carousel.png';
- private static array $db = ;
- private static array $many_many = ;
- private static array $many_many_extraFields = ;
- // methods
- protected string|false getClassFolder()
- public FieldList getCMSFields()
- public FieldList getSettingsFields()
- public Validator getCMSValidator()
- public void onTranslatableCreate()
Hierarchy
Extends
- Page
Members
private
- $db
- $icon
- $many_many
- $many_many_extraFields
Methods
protected
- getClassFolder() — Search the first class name (that must have a 'Page' suffix) in the object hierarchy that has a correspoding folder in ASSETS_PATH, that is a folder with the same name with the 'Page' suffix stripped out. This folder will be returned and used as custom folder in the upload field.
public
- getCMSFields() — Add the "Images" tab to the content form of the page.
- getCMSValidator() — Ensure ThumbnailWidth and ThumbnailHeight are valorized.
- getSettingsFields() — Add carousel related fields to the page settings.
- onTranslatableCreate() — Out of the box support for silverstripe/silverstripe-translatable.