Extending Tab removes all fields

Hello,
I’m kinda embarrassed to create this post, espacially because it basicly has been answered here:

So basicly I have a Tab-Blueprint for an Headslider with one Field in it that needs to be disabled. As far as I know, the Page-Blueprint should look like this:

  slidertab:
    extends: tabs/slides
    fields:
      slideroff: false

But the result isn’t what I expect. I get this:

All sections and other fields in the Tab disappear.

What am I doing wrong here?

Thanks in advance
tom

Hm, maybe an indentation problem somewhere? The way you extend the tab is correct. Could you post the complete blueprint where you extend the tab, please? And the extended blueprint as well…

Sure, the Page-Blueprint:

title: Startseite
icon: page

tabs:
  contenttab:
    label: Basic
    columns:
      - width: 1/4
        sections:
          pagessection:
            extends: sections/pagelist
            create:
              - cont-block

          info: sections/templateinfo

      - width: 3/4
        sections:
          contsection:
            type: fields
            fields:
              text:
                label: Text
                type: textarea


  slidertab:
    extends: tabs/slides
    fields:
      slideroff: false

  filetab: tabs/files

The Tab:

label: Headslider

icon: image
columns:
  - width: 1/4
    sections:
      imagesection: sections/img-section

  - width: 3/4
    sections:
      imgfields:
        type: fields
        fields:
          imgentries: fields/slides

          slideroff:
            label: Slider
            type: toggle
            text: Slider ausschalten

Ah, that’s because your field is in a section, so you would have to extend the section and unset the field. Otherwise, you completely overwrite your tab. But I doubt that unsetting a field inside a section can be disabled as there is probably no way to address this.

Edit:

if you name your columns (in this case, maybe main and aside), this should work…

  slidertab:
    extends: tabs/slides
    columns:
      main:
        sections:
          imgfields:
            type: fields
            fields:
              slideroff: false
2 Likes

I’ll give it a try

And again you’re the hero, it works. Thanks very much. And you should consider to add this in the docs, because this is a really good thing to know and makes the Tabs even more flexible.

Yes, I agree we need more examples.

You can’t have enough examples :wink: but at least now theres a solution in the forum.

Thanks again and have a nice afternoon

cheers
tom

1 Like