Hi there,
i have extended some fields in my blueprints like that:
extends: tabs/settings
In those settings there are some fields, which i don’t want to display in some pagetypes.
Is it possible to do some filtering or conditions for this need? As a workaround i could extend an alternative version, but would be much cleaner with a condition.
greetings
Timo Haas
Ah thank you, i didn’t found that.
I tried to replicate it, but in the panel no fields are found (“No fields yet”).
tabs/settings:
label: Einstellungen
icon: cog
sections:
menu:
type: fields
fields:
menuSettings:
type: headline
label: Menü-Zuweisung
numbered: false
mainNavigation:
type: toggle
label: Hauptnavigation
default: true
width: 1/4
footerNavigationOne:
type: toggle
label: "{{ site.footerSectionOneHeading.upper }} (Footerspalte 1)"
width: 1/4
footerNavigationTwo:
type: toggle
label: "{{ site.footerSectionTwoHeading.upper }} (Footerspalte 2)"
width: 1/4
footerNavigationThree:
type: toggle
label: "{{ site.footerSectionThreeHeading.upper }} (Footerspalte 3)"
width: 1/4
login:
type: fields
fields:
pageSettings:
type: headline
label: Sonstiges
numbered: false
needsLogin:
type: toggle
label: Seite nur für angemeldete Benutzer zeigen
width: 1/4
structuredPage:
type: toggle
label: Strukturseite
help: Seite ist nicht mehr direkt erreichbar sondern dient als strukturierung für Unterseiten
width: 1/4
Then in the page:
title: Impressum
options:
delete: false
duplicate: false
tabs:
Impressums-daten:
icon: text
type: fields
fields:
customArea:
type: textarea
label: Zusatztext 1
width: 2/2
copyrigth:
type: toggle
lable: Text Urheberrechtshinweis
width: 1/4
argument:
type: toggle
lable: Text Online-Plattform zur Streitbeilegung
width: 1/4
Meta-Daten:
extends: tabs/meta
Einstellungen:
extends: tabs/settings
fields:
needsLogin: false
That’s because your fields are inside sections. So you would have to do it like this:
Einstellungen:
extends: tabs/settings
sections:
login:
fields:
needsLogin: false
The sections are not really necessary in your example (unless you use them for better readability)
Thank you, yes i think i can get rid of the sections