Block names of StructBlock are not properly displayed
See original GitHub issuev1.0b2
The Wagtail code:
class HomePage(Page):
body = StreamField([
('heading', blocks.CharBlock(classname="full")),
('carousel', ListBlock(
StructBlock([
('image', ImageChooserBlock()),
('page', PageChooserBlock()),
('quotation', TextBlock()),
]), icon='cogs', template='shop/blocks/carousel.html')),
])
I get the following editing interface:
Note that the image and quotation block names are not displayed as block page does.
Issue Analytics
- State:
- Created 8 years ago
- Comments:9 (2 by maintainers)
Top Results From Across the Web
Django Wagtail TableBlock not displaying correctly
I managed to set up the model and the block correctly but when the html is rendered, i'm not getting a table but...
Read more >How to use StreamField for mixed content
Placing a StructBlock's list of child blocks inside a StreamField definition can often be hard to read, and makes it difficult for the...
Read more >Freeform page content using StreamField
The parameter to StreamField is a list of (name, block_type) tuples. 'name' is used to identify the block type within templates and the...
Read more >Access a streamfield block's index within its template
My question is whether anyone would be aware of a way to get the current index of a template based 'for loop' that...
Read more >Creating and Editing Wagtail Components - CFPB
In Wagtail parlance, these are called "StreamField blocks"* (or just "blocks"). ... label is not set, Wagtail will generate one from the name...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This topic is over a year old, but I can’t figure out how to get the below suggestion to work…
I’m not having any luck trying to get the Product page properties. The only property I can access is
{{ item }}
. What do I need to do to access the specific page properties?Any tips on this would be greatly appreciated.
Hi @DevinCalado - please use the Wagtail support Google group for support queries.