Both complement each other!
- Builder is great for having several structure sets to choose from, and iterating over each in the template with a snippet per set.
- Snippet field is great for displaying the entries in the panel. I use it very often because it keeps the display logic of entries out of the blueprint which should only manage data logic. I’d love to use that in combination with builder.
It would look like this:
builder:
label: Sections
type: builder
modalsize: large
fieldsets:
firstset:
label: Some Set
snippet: panel/snippet1
fields:
bgcolor:
label: Section background color
type: color
textcolor:
label: Section Text color
type: color
secondset:
label: Some other set
snippet: mydir/snippet
fields:
bgcolor:
label: Section background color
type: color
textcolor:
label: Section Text color
type: color
Does that make sense?
Ps: why does’t code highlighting work well with YAML ? I tred adding YAML, yaml, yml just after the three backticks without any change…