Slider¶
A slideshow component which may be similar to Album but with difference that a slide item can have HTML content.
Slide items are ordered from their order field value. Items with a zero
value for their order will be ordered in an almost arbitrary order (mostly
depending from item object id).
- class cmsplugin_blocks.models.slider.Slider(*args, **kwargs)[source]¶
Slide container for items.
- title¶
A required title string.
- template¶
Template choice from available plugin templates in setting
BLOCKS_SLIDER_TEMPLATES. Default to the first choice item.
- size_features¶
Optional related size features.
- color_features¶
Optional related color features.
- extra_features¶
Optional related extra features.
- class cmsplugin_blocks.models.slider.SlideItem(*args, **kwargs)[source]¶
Slide item to include in container.
- title¶
Required title string.
- image¶
Required image file, limited to enabled image formats from settings
BLOCKS_ALLOWED_IMAGE_EXTENSIONS.
- image_alt¶
An optional text string for alternative image text.
- content¶
Optional long text, it will be editable through CKeditor on plugin form.
- order¶
Number for order position in item list.
- link_name¶
Optional string for link name.
- link_url¶
Optional string for link URL.
- link_open_blank¶
Checkbox to enable opening link URL in a new window/tab.