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.

features

Optional string of CSS class names divided by a single comma.

copy_relations(oldinstance)[source]

Copy FK relations when plugin object is copied as another object

See:

http://docs.django-cms.org/en/latest/how_to/custom_plugins.html#for-foreign-key-relations-from-other-objects

get_features()[source]

Merge feature items into a string with a space divider.

Returns:Feature items divided by a space. Duplicate items are removed and original order is preserved.
Return type:string
class cmsplugin_blocks.models.slider.SlideItem(*args, **kwargs)[source]

Slide item to include in container.

title

Required title string.

features

Optional string of CSS class names divided by a single comma.

image

Required image file, limited to enabled image formats from settings BLOCKS_ALLOWED_IMAGE_EXTENSIONS.

content

Optional long text, it will be editable through CKeditor on plugin form.

order

Number for order position in item list.

Optional string for link name.

Optional string for link URL.

Checkbox to enable opening link URL in a new window/tab.

get_features()[source]

Merge feature items into a string with a space divider.

Returns:Feature items divided by a space. Duplicate items are removed and original order is preserved.
Return type:string