Hi Community,
we have this default yml file for creating our page content. in this yml we already included some snippets for “text”, “image”, etc. our goal is now to create more snippets e.g. for the “settings” tab and in the best case for the whole “builder”.
if i try to create a snippet for the Settings Tab like this:
settings: tabs/section-settings
i always get this error:
Illegal string offset 'fields'
could you please help us finding the error and to modularize the blueprint more.
title: Default Page
preset: page
fields:
mybuilder:
label: Seiteninhalt
type: builder
columns: 1 # Optional. If set to 2 or more, the builder blocks will be places in a grid.
#max: 10 # Optional. Limits the number of builder blocks that can be added.
fieldsets:
section:
label: Section <strong>{{identifier}}</strong>
tabs:
content:
label: Inhalt
icon: edit
fields:
sectionfields:
type: builder
label: Section Content
fieldsets:
bodytext: blocks/bodytext
img: blocks/img
settings:
label: Settings
icon: cog
fields:
identifier:
label: ID
type: text
width: 1/2
placeholder: ID
animation:
label: Animation
type: select
width: 1/2
options:
fadein: FadeIn
fadeinup: FadeInUp
fadeinupbig: FadeInUpBig
fadeinleft: FadeInLeft
fadeinleftbig: FadeInLeftBig
fadeinright: FadeInRight
fadeinrightbig: FadeInRightBig
style:
label: CSS Klassen
type: checkboxes
width: 1/2
options:
text-white: weißer Text
is-full-height: Full Height
is-middle: vertikal zentriert
is-bottom-sm: mobil bottom
container:
label: Container
type: radio
width: 1/2
default: container
options:
container: normal
container-stretched: volle Breite
container-stretched-paddings: volle Breite mit Abstand
info:
text: **Bitte beachten!** Parallax funktioniert nur bei Auswahl eines Hintergrundbildes. Hintergrundfarbe funktioniert nur ohne Hintergrundbild.
width: 1/1
type: info
bgcolor:
label: Hintergrundfarbe
width: 1/3
type: select
options:
bg-primary: Primärfarbe
bg-dark: Dunkel
bg-bright: Hell
bgimg:
label: Hintergrund-Bild
type: files
multiple: false
width: 1/3
parallax:
label: Parallax-Effekt?
type: toggle
width: 1/3
quote: blocks/quote
bodytext: blocks/bodytext
events: blocks/events
img: blocks/img
Thanks!