Card¶
A card component with a title, image, features and content.
- class cmsplugin_blocks.models.card.Card(*args, **kwargs)[source]¶
Card component.
- title¶
An optional title string.
- template¶
Template choice from available plugin templates in setting
BLOCKS_CARD_TEMPLATES. Default to the first choice item.
- image¶
Optional image file, limited to enabled image formats from settings
BLOCKS_ALLOWED_IMAGE_EXTENSIONS.
- image_alt¶
An optional text string for alternative image text.
- link_url¶
Optional string for link URL.
- link_open_blank¶
Checkbox to enable opening link URL in a new window/tab.
- size_features¶
Optional related size features.
- color_features¶
Optional related color features.
- extra_features¶
Optional related extra features.
- content¶
Optional long text, it will be editable through CKeditor on plugin form.