Skip to content

Using tabs in blocks #9

Answered by LukeTowers
damsfx asked this question in Q&A
Apr 29, 2023 · 1 comments · 4 replies
Discussion options

You must be logged in to vote

You need to have your fields inside of a fields property inside of the tabs property, refer to https://wintercms.com/docs/backend/forms#form-tab-options.

So your configuration should look like the following:

name: Section
description: Section with params
icon: icon-th-large
context: ["test"]
fields:
    content:
        label: Section
        type: nestedform
        form:
            fields:
                label:
                    label: Label test field
                    span: full
                    type: text
            tabs:
                icons:
                    Content: 'icon-pencil'
                    Params: 'icon-cog'
                fields:
                    section

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@damsfx
Comment options

@LukeTowers
Comment options

Answer selected by damsfx
@damsfx
Comment options

@LukeTowers
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants