Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature request: imageblock streamfield, documentblock #281

Closed
onno-timmerman opened this issue Dec 8, 2020 · 3 comments
Closed

feature request: imageblock streamfield, documentblock #281

onno-timmerman opened this issue Dec 8, 2020 · 3 comments

Comments

@onno-timmerman
Copy link
Contributor

Currently in streamfields the imageblocks and documentblock are not supported. They give only a "number".

@codingcatgirl
Copy link

I saw your other bug report already, and now i'm wondering if you are using the same version as me. Because for me, it does not display a number for imageblocks.

@iankameron
Copy link

iankameron commented Jan 18, 2021

I am maybe seeing something similar, but only when the imagechooserblock is in a StreamBlock that's nested into another StreamField. If this is a separate issue, I'll log separately.

in original language page
image

translation page
image

imagechooserblock showing up as expected when it's just in a simple StreamField (allowing selection of a different image for the translated Page)
image

Page definition

    body = StreamField(
        block_types=[
            ('section', SectionBlock()),
        ]
    )

Where SectionBlock defined as:

class SectionBlock(blocks.StructBlock):
    section_title = blocks.CharBlock(icon='title')
    body = ContentBlock()
    code = CodeSet()

And ContentBlock:

class ContentBlock(blocks.StreamBlock):
    section_text = blocks.RichTextBlock()
    image = ImageChooserBlock()

Versions:

wagtail==2.11.1
Django==3.1.3
wagtailmenus==3.0.2
wagtail-localize==0.9.3

@zerolab
Copy link
Collaborator

zerolab commented Nov 5, 2021

This was fixed in #480 and working as of version 1.0

@zerolab zerolab closed this as completed Nov 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants