wagtail-streamfield Questions

2

By default, wagtail's StreamField looks something like this in the admin for empty fields, showing the different blocks available for the user: I would however prefer it to contain a block of my ...
Cali asked 6/3, 2019 at 10:5

2

Solved

I have a page with one StreamField body and a custom block named HeadingBlock: class HeadingBlock(blocks.StructBlock): heading = blocks.CharBlock() cssid = blocks.CharBlock() ... class CustomP...
Pili asked 15/11, 2016 at 14:42

2

Solved

In the model below I want to make the bottom_content field in its entirety not required. How can I do this? class ServicePage(Page): top_content = StreamField(default_blocks + [ ('two_columns', ...
Bipolar asked 16/11, 2017 at 18:37

2

Solved

Building a custom template for the wagtail StreamField block I found myself in the situation that I need somehow pass the ID of the current block to the other views. For instance when the URL is c...
Kellykellyann asked 20/3, 2018 at 17:20

1

Solved

I've been using Wagtail as a headless CMS to use with a frontend application, However I noticed some limitations regarding images. Normally in your jinja template you would generate the correct ima...
Gumm asked 17/8, 2017 at 10:25

1

Solved

I would like to achieve something like this, from wagtail.wagtailcore.blocks import StreamBlock, StructBlock class CarouselBlock(StructBlock): content = StreamBlock([ ('tab', TabBlock()), ('...
Firdausi asked 15/6, 2016 at 11:3

1

Solved

I am trying to build some structured snippets on my Wagtail site. I looked through the documentation, but saw nothing on this point (forgive me if I missed it). Is it possible to use StreamField i...
Dashtilut asked 5/5, 2016 at 12:48
1

© 2022 - 2025 — McMap. All rights reserved.