Hi everyone!
Ever since upgrading from 3.6.6, structure fields in the panel I’m working on look weird.
For example: Here is a “menu builder” I use in the panel, where toggle & pages fields are not rendered as they are supposed to be. Only text field seems to be ok, as it doesn’t need special formatting.
Here is the blueprint code for the structure field:
type: structure
fields:
textOrPage:
type: toggle
label: Menüpunkt ist Seite / Text?
text:
- "Seite"
- "Text"
width: 1/4
mainMenu:
type: pages
label: Menüpunkt (Seite)
max: 1
image:
query: false
when:
textOrPage: false
width: 1/4
mainMenuText:
type: text
label: Menüpunkt (Text)
when:
textOrPage: true
width: 1/4
hasSubmenu:
type: toggle
label: Hat Untermenü?
text: Hat Untermenü?
width: 1/4
subMenu:
type: pages
label: Untermenüpunkte
when:
hasSubmenu: true
width: 1/4
image:
back: white
query: icon
Interestingly when clicked on a single entry, the entry is rendered as expected:
I’m not sure if this is a general bug or something to do with my blueprint code. But I believe it can be traced back to / related to this PR by @bastianallgeier Improved table previews and usage of table component for plugins by bastianallgeier · Pull Request #4294 · getkirby/kirby · GitHub
I have tried to create a new structure field, with examples from the Kirby Structure Field Reference, yet the same problem persists.
I’d appreciate any help! (Did anyone else have a similar problem with structure fields? Is this a bug? etc.)
Thanks in advance