Skip to content

Latest commit

 

History

History
21 lines (15 loc) · 541 Bytes

card_with_image.md

File metadata and controls

21 lines (15 loc) · 541 Bytes

Card with an image

from wagtail.core.models import Page
from wagtail.core.fields import StreamField

from wagtailnhsukfrontend.blocks import CardImageBlock,

class MyPage(Page):
  body = StreamField([
      ...
      ('card_with_an_image', CardImageBlock()),
      ...
  ], use_json_field=True)

Reference