简体   繁体   English

Wa的MultiFieldPanel宽度和显示的名称

[英]MultiFieldPanel width in Wagtail and displayed name

I have the following MultiFieldPanel. 我有以下MultiFieldPanel。

class TeamRooster(Page):
    staff = StreamField([
        ('staff', CardsBlock(Staff(), icon="plus")),
    ], blank=True)
    content_panels = [
        MultiFieldPanel(
            [ StreamFieldPanel('staff') ],
            heading="Staff", classname="col12"
        ),

在此处输入图片说明

three times " Staff " is too much. 三倍“ 员工 ”太多了。 I looked in the documentation and tried to delete the names but I have a bug. 我查看了文档,并试图删除名称,但是我有一个错误。

And how to change the width of MultiFieldPanel? 以及如何更改MultiFieldPanel的宽度? I tried to add classname="full" but it doesn't help me. 我试图添加classname="full"但对我没有帮助。

在此处输入图片说明

As @lb-ben-johnston said I changed content_panels [] 正如@ lb-ben-johnston所说,我更改了content_panels []

在此处输入图片说明

Thanks @lb-ben-johnston! 谢谢@ lb-ben-johnston!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM