Hero

A hero component with an image (commonly for background) and a content.

class cmsplugin_blocks.models.hero.Hero(*args, **kwargs)[source]

Hero component.

template

Template choice from available plugin templates in setting BLOCKS_HERO_TEMPLATES. Default to the first choice item.

features

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

image

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

content

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

get_features()[source]

Merge feature items into a string with a comma divider.

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