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

Grouping Wagtail CMS streamfield fields? #487

Open
envobe opened this issue May 15, 2022 · 1 comment
Open

Grouping Wagtail CMS streamfield fields? #487

envobe opened this issue May 15, 2022 · 1 comment
Labels
Type: Question Further information is requested

Comments

@envobe
Copy link

envobe commented May 15, 2022

First of all, I wish everyone a good day.

I want to group blocks that I created with StreamField.

I am attaching an example video and image below.

You can view the image here.

https://youtu.be/VMfxVCGarf4

Thank you for your help, best regards.

What do I want to do?

All component list

    Sub column (Component 1)
    Sub column (Component 2)
    Sub column (Component 3)

All html blocks

   Sub column (HTML block 1)
   Sub column (HTML block 2)
   Sub column (HTML block 3)
@envobe envobe added the Type: Question Further information is requested label May 15, 2022
@vsalvino
Copy link
Contributor

Hello - sorry for missing this issue previously. Wagtail has added a "group" argument to StreamBlock, which you can use when defining your own StreamField / StreamBlocks. https://docs.wagtail.org/en/latest/reference/streamfield/blocks.html#block-options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants