carouselThe style carousel allows to render a set of images as a slide show. The field sources defines the different image sources.
Note that the field sources is of type json and requires
source: specifies the image location (simply use the name of the image if it was uploaded as asset)alt (optional): specifies the text to be displayed if the image cannot be loaded (a descriptive text is very useful for blind people)caption (optional): specifies an image caption that will be displayed at the bottom of the imageIt is best to copy the example below and adapt the image names according to your requirements.
[{
"source": "slide1.svg",
"alt": "Image Description of Slide 1",
"caption": "Image Caption of Slide 1"
},
{
"source":"slide2.svg",
"alt": "Image Description of Slide 2",
"caption": "Image Caption of Slide 2"
},
{
"source":"slide3.svg",
"alt": "Image Description of Slide 3",
"caption": "Image Caption of Slide 3"
}]
The field id_prefix takes any string of characters and will be prepended to the HTML id of the carousel element. Use a unique string if multiple carousels are on the same page. This prevents interference between them.
Unknown Style styleSignature
Enable the field has_controls to render controls that allow to manually switch between the images.
Enable the field has_indicators to render image position indicators at the bottom of the carousel.
A caption is displayed on each image when adding a caption attribute to each image object in the json string.
Enabling the field has_crossfade will make the images fade from one to another instead of sliding.